diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2007-11-02 00:41:04 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2007-11-02 00:41:04 +0000 |
commit | ad45ea3e3f7f96a2b68704434a550f71b65db6d4 (patch) | |
tree | c41dd948c39337b0ddbec491a75927184c7d7c9d /fonts | |
parent | 72183244cc2a8960d9b7c2af4a1c795d394ab30d (diff) | |
download | pkgsrc-ad45ea3e3f7f96a2b68704434a550f71b65db6d4.tar.gz |
Optionalize X11 support. Requested & tested by Fredrik Ljung.
Reviewed By: abs
Diffstat (limited to 'fonts')
-rw-r--r-- | fonts/t1lib/Makefile | 8 | ||||
-rw-r--r-- | fonts/t1lib/options.mk | 15 |
2 files changed, 17 insertions, 6 deletions
diff --git a/fonts/t1lib/Makefile b/fonts/t1lib/Makefile index 3bcf73ea573..44b7fed903c 100644 --- a/fonts/t1lib/Makefile +++ b/fonts/t1lib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2007/09/28 08:42:07 drochner Exp $ +# $NetBSD: Makefile,v 1.35 2007/11/02 00:41:04 uebayasi Exp $ DISTNAME= t1lib-5.1.0 PKGREVISION= 6 @@ -23,7 +23,7 @@ DATADIR= ${PREFIX}/share/${PKGBASE} CONF_FILES= ${EGDIR}/t1lib.config.sample ${DATADIR}/t1lib.config CONF_FILES+= ${EGDIR}/FontDataBase ${DATADIR}/FontDataBase -.include "../../x11/libXpm/buildlink3.mk" +.include "options.mk" SUBST_CLASSES+= paths SUBST_FILES.paths= t1lib.config.sample @@ -49,8 +49,4 @@ post-install: cd ${WRKSRC}/examples; \ ${PAX} -rw FontDataBase t1example1.c t1lib.config ${DESTDIR}${EGDIR} -.include "../../x11/libX11/buildlink3.mk" -.include "../../x11/libXt/buildlink3.mk" -.include "../../x11/libXaw/buildlink3.mk" -.include "../../x11/libXp/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/fonts/t1lib/options.mk b/fonts/t1lib/options.mk new file mode 100644 index 00000000000..485ae20e077 --- /dev/null +++ b/fonts/t1lib/options.mk @@ -0,0 +1,15 @@ +# $NetBSD: options.mk,v 1.1 2007/11/02 00:41:04 uebayasi Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.t1lib +PKG_SUPPORTED_OPTIONS+= x11 +PKG_SUGGESTED_OPTIONS+= x11 + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mx11) +.include "../../x11/libX11/buildlink3.mk" +.include "../../x11/libXaw/buildlink3.mk" +.include "../../x11/libXp/buildlink3.mk" +.include "../../x11/libXpm/buildlink3.mk" +.include "../../x11/libXt/buildlink3.mk" +.endif |