aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2002-09-16 12:05:28 +0000
committerThomas Gellekum <tg@FreeBSD.org>2002-09-16 12:05:28 +0000
commit5b23dd80804c99a09400a2fd5a3da85efd3bb57a (patch)
tree6782b92edd6515fad438692bfbfa6598a21bdd60 /lang
parentdad6ec99550ce41e9d77106dce4be6d4cf5f41ed (diff)
downloadports-5b23dd80804c99a09400a2fd5a3da85efd3bb57a.tar.gz
ports-5b23dd80804c99a09400a2fd5a3da85efd3bb57a.zip
Notes
Diffstat (limited to 'lang')
-rw-r--r--lang/icon/Makefile19
-rw-r--r--lang/icon/pkg-plist20
2 files changed, 26 insertions, 13 deletions
diff --git a/lang/icon/Makefile b/lang/icon/Makefile
index 645b57fa28a9..029587f7f0a1 100644
--- a/lang/icon/Makefile
+++ b/lang/icon/Makefile
@@ -16,10 +16,18 @@ MAINTAINER= ports@FreeBSD.org
ONLY_FOR_ARCHS= alpha i386
+.ifdef WITHOUT_X11
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
+CONFIG_CMD= Configure
+PLIST_SUB= WITHOUT_X11="@comment "
+.else
USE_XLIB= yes
-USE_REINPLACE= yes
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${X11BASE}/include" \
XLIBS="-L${X11BASE}/lib -lX11"
+CONFIG_CMD= X-Configure
+PLIST_SUB= WITHOUT_X11=
+.endif
+USE_REINPLACE= yes
ALL_TARGET= All
MAN1= icont.1
@@ -35,7 +43,7 @@ pre-patch:
do-configure:
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
- ${MAKEFILE} ${MAKE_ARGS} X-Configure name=${ARCH_NAME})
+ ${MAKEFILE} ${MAKE_ARGS} ${CONFIG_CMD} name=${ARCH_NAME})
do-install:
${INSTALL_MAN} ${WRKSRC}/man/man1/icont.1 ${PREFIX}/man/man1
@@ -43,12 +51,17 @@ do-install:
.for file in icont iconx patchstr
${INSTALL_PROGRAM} ${WRKSRC}/bin/${file} ${ICONDIR}/bin
.endfor
+.ifndef WITHOUT_X11
.for file in colrbook colrpick fontpick ipatch palette vib wevents xgamma
${INSTALL_SCRIPT} ${WRKSRC}/bin/${file} ${ICONDIR}/bin
.endfor
-.for file in icont iconx vib
+.endif
+.for file in icont iconx
@${LN} -sf ${ICONDIR}/bin/${file} ${PREFIX}/bin/${file}
.endfor
+.ifndef WITHOUT_X11
+ @${LN} -sf ${ICONDIR}/bin/vib ${PREFIX}/bin/vib
+.endif
@${MKDIR} ${ICONDIR}/lib
${INSTALL_DATA} ${WRKSRC}/lib/*.* ${ICONDIR}/lib
.if !defined(NOPORTDOCS)
diff --git a/lang/icon/pkg-plist b/lang/icon/pkg-plist
index 814d2785cfbb..9caf0f2f2919 100644
--- a/lang/icon/pkg-plist
+++ b/lang/icon/pkg-plist
@@ -1,20 +1,20 @@
-lib/icon/bin/colrbook
-lib/icon/bin/colrpick
-lib/icon/bin/fontpick
+%%WITHOUT_X11%%lib/icon/bin/colrbook
+%%WITHOUT_X11%%lib/icon/bin/colrpick
+%%WITHOUT_X11%%lib/icon/bin/fontpick
lib/icon/bin/icont
@exec ln -sf %B/%f %D/bin/%f
@unexec rm -f %D/bin/%f
lib/icon/bin/iconx
@exec ln -sf %B/%f %D/bin/%f
@unexec rm -f %D/bin/%f
-lib/icon/bin/ipatch
-lib/icon/bin/palette
+%%WITHOUT_X11%%lib/icon/bin/ipatch
+%%WITHOUT_X11%%lib/icon/bin/palette
lib/icon/bin/patchstr
-lib/icon/bin/vib
-@exec ln -sf %B/%f %D/bin/%f
-@unexec rm -f %D/bin/%f
-lib/icon/bin/wevents
-lib/icon/bin/xgamma
+%%WITHOUT_X11%%lib/icon/bin/vib
+%%WITHOUT_X11%%@exec ln -sf %B/%f %D/bin/%f
+%%WITHOUT_X11%%@unexec rm -f %D/bin/%f
+%%WITHOUT_X11%%lib/icon/bin/wevents
+%%WITHOUT_X11%%lib/icon/bin/xgamma
lib/icon/lib/abkform.u1
lib/icon/lib/abkform.u2
lib/icon/lib/adjuncts.u1