blob: fec57ec772a54af20af230100e47803dc10b6043 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# $NetBSD: Makefile,v 1.5 2004/07/30 08:31:23 xtraeme Exp $
DISTNAME= ${DISTFILES}
PKGNAME= xorg-imake-${XORG_VER}
PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XORG}
DISTFILES= X11R6.7.0-src1.tar.gz X11R6.7.0-src3.tar.gz
MAINTAINER= xtraeme@NetBSD.org
HOMEPAGE= http://www.x.org/
COMMENT= Imake and other utilities from X.org
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_BUILDLINK3= yes
USE_DIRS+= xorg-1.0
INSTALL_TARGET= install install.man
NO_XORG_TARGETS= yes
CHECK_X11_TYPE= yes
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
DEPENDS+= bison-[0-9]*:../../devel/bison
DEPENDS+= flex-[0-9]*:../../devel/flex
PLIST_SUBST+= LNDIR=
.elif ${OPSYS} == "OpenBSD"
PLIST_SUBST+= LNDIR="@comment "
.else
PLIST_SUBST+= LNDIR=
.endif
.include "../../meta-pkgs/xorg/Makefile.common"
post-extract:
@${TOUCH} ${WRKSRC}/config/cf/date.def
.for F in ${SYSTEMS}
@${MV} ${WRKSRC}/config/cf/${F}.cf ${WRKSRC}/config/cf/${F}.cf.in
.endfor
.undef F
pre-configure:
.for F in ${SYSTEMS}
@${SED} -e "s|@@PKGSRC_CC@@|${CC}|g" \
-e "s|@@PKGSRC_CPP@@|${CPP}|g" \
-e "s|@@PKGSRC_CXX@@|${CXX}|g" \
-e "s|@@PKGSRC_CFLAGS@@|${CFLAGS}|g" \
${WRKSRC}/config/cf/${F}.cf.in > \
${WRKSRC}/config/cf/${F}.cf
.endfor
.undef F
@( \
${ECHO} "#define XORG_VERSION_MAJOR 6"; \
${ECHO} "#define XORG_VERSION_MINOR 7"; \
${ECHO} "#define XORG_VERSION_PATCH 0"; \
${ECHO} "#define XORG_VERSION_SNAP 0"; \
) > ${WRKSRC}/config/cf/version.def
do-build:
@${CP} ${FILESDIR}/xorgsite.def ${WRKSRC}/config/cf
@${SED} -e "s|@PREFIX@|${X11ROOT}|g" \
-e "s|@BLNK@|${BUILDLINK_DIR}|g" \
-e "s|@LOCALBASE@|${LOCALBASE}|g " \
-e "s|@MAKE@|${MAKE_PROGRAM}|" ${FILESDIR}/host.def > \
${WRKSRC}/config/cf/host.def
cd ${WRKSRC} && ${MAKE} Makefile.boot && \
${MAKE_PROGRAM} -f xmakefile VerifyOS version.def Makefiles includes
# These files are handled by xorg-libs.
post-install:
@${RM} -rf ${X11ROOT}/include
.include "../../mk/bsd.pkg.mk"
|