blob: fedc3c936c52d4446dfc0202edc2d4b22f791340 (
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
|
# $NetBSD: Makefile,v 1.4 2004/02/02 14:14:45 xtraeme Exp $
DISTNAME= ${DISTFILES}
PKGNAME= imake-${XF_VER}
PKGREVISION= 1
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_XFREE}
DISTFILES= X430src-1.tgz X430src-3.tgz
MAINTAINER= xfree86@blef.org
HOMEPAGE= http://www.xfree86.org/
COMMENT= Imake and other utilities from XFree86
USE_BUILDLINK2= YES
INSTALL_TARGET= install install.man
NO_XFREE86_TARGETS= # defined
.include "../../mk/bsd.prefs.mk"
PLIST_SUBST+= IMAKE_MAN_DIR=${IMAKE_MAN_DIR}
PLIST_SUBST+= IMAKE_MANNEWSUFFIX=${IMAKE_MANNEWSUFFIX}
.if ${OPSYS} == "Linux" || ${OPSYS} == "FreeBSD"
PLIST_SUBST+= AVAILABLE=
.else
PLIST_SUBST+= AVAILABLE="@comment "
.endif
.if ${OPSYS} == "Linux"
DEPENDS+= bison-[0-9]*:../../devel/bison
DEPENDS+= flex-[0-9]*:../../devel/flex
USE_GNU_TOOLS+= make
.endif
.include "../../meta-pkgs/XFree86/Makefile.common"
post-extract:
.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
do-build:
@${TOUCH} ${WRKSRC}/config/cf/version.def
@${TOUCH} ${WRKSRC}/config/cf/date.def
@${CP} ${FILESDIR}/xf86site.def ${WRKSRC}/config/cf
@${SED} \
-e "s|@PREFIX@|${PREFIX}|g" \
-e "s|@BLNK@|${BUILDLINK_DIR}|g" \
-e "s|@LOCALBASE@|${LOCALBASE}|g " \
-e "s|@LDFLAGS@|${LDFLAGS}|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 )
.include "../../mk/bsd.pkg.mk"
|