summaryrefslogtreecommitdiff
path: root/graphics/libwmf/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2000-08-05 02:36:37 +0000
committerjlam <jlam@pkgsrc.org>2000-08-05 02:36:37 +0000
commit868eb8ea3aeca1fc9326dbe3e89ce4b2110b1cc5 (patch)
treebd7f3ed12c8b40fc8f886a02038792c58fa1b29d /graphics/libwmf/Makefile
parent07b4f7a47f6b1b7a514253ff69dce41e511ca56d (diff)
downloadpkgsrc-868eb8ea3aeca1fc9326dbe3e89ce4b2110b1cc5.tar.gz
Change build and installation so we don't conflict with graphics/gd.
Also install html documentation into PREFIX/share/doc/html. Bump version to 0.1.17nb1
Diffstat (limited to 'graphics/libwmf/Makefile')
-rw-r--r--graphics/libwmf/Makefile39
1 files changed, 20 insertions, 19 deletions
diff --git a/graphics/libwmf/Makefile b/graphics/libwmf/Makefile
index 2cc1024b89f..4bd212338a0 100644
--- a/graphics/libwmf/Makefile
+++ b/graphics/libwmf/Makefile
@@ -1,47 +1,48 @@
-# $NetBSD: Makefile,v 1.11 2000/08/04 22:10:15 jlam Exp $
+# $NetBSD: Makefile,v 1.12 2000/08/05 02:36:37 jlam Exp $
#
-DISTNAME= libwmf-0.1.17
+DISTNAME= libwmf-0.1.17nb1
CATEGORIES= graphics devel
MASTER_SITES= http://www.csn.ul.ie/~caolan/publink/libwmf/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.csn.ul.ie/~caolan/docs/libwmf.html
-BUILD_DEPENDS+= autoreconf:../../devel/autoconf
+BUILD_DEPENDS+= autoconf:../../devel/autoconf
DEPENDS+= freetype-lib>=1.3.1:../../graphics/freetype-lib
DEPENDS+= png>=1.0.6:../../graphics/png
DEPENDS+= xpm-3.4k:../../graphics/xpm
-# installs own gd, which has some extra functionality
-CONFLICTS+= gd-*
-
WRKSRC= ${WRKDIR}/libwmf
-USE_X11= YES
+USE_X11= # defined
-GNU_CONFIGURE= YES
+GNU_CONFIGURE= # defined
EVAL_PREFIX+= XPMDIR=xpm
+CONFIGURE_ARGS+= --includedir="${PREFIX}/include/libwmf"
CONFIGURE_ARGS+= --with-png="${LOCALBASE}"
CONFIGURE_ARGS+= --with-ttf="${LOCALBASE}"
CONFIGURE_ARGS+= --with-xpm="${XPMDIR}"
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
-CPPFLAGS+= -I${LOCALBASE}/include/freetype # freetype.h
CPPFLAGS+= -I${LOCALBASE}/include # png.h
-CPPFLAGS+= -I${XPMDIR}/include # xpm.h
+
+INCLUDEDIR= ${PREFIX}/include/libwmf
+HTMLDIR= ${PREFIX}/share/doc/html/libwmf
pre-configure:
- cd ${WRKSRC} && autoreconf
+ cd ${WRKSRC} && autoconf
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${INCLUDEDIR}
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libwmf
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libwmf/pics
- cd ${WRKSRC} && ${INSTALL_DATA} doc/*.html doc/*.gif \
- COPYING CREDITS README ${PREFIX}/share/doc/libwmf
- ${INSTALL_DATA} ${WRKSRC}/doc/pics/weave.jpg \
- ${PREFIX}/share/doc/libwmf/pics
- ${SETENV} PKG_PREFIX=${PREFIX} \
- ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
+ ${INSTALL_DATA} ${WRKSRC}/myxpm.h ${INCLUDEDIR}
+ ${INSTALL_DATA_DIR} ${HTMLDIR}
+ ${INSTALL_DATA_DIR} ${HTMLDIR}/pics
+ cd ${WRKSRC}; ${INSTALL_DATA} doc/*.html doc/*.gif \
+ COPYING CREDITS README ${HTMLDIR}
+ cd ${WRKSRC}; ${INSTALL_DATA} doc/pics/weave.jpg \
+ ${HTMLDIR}/pics
.include "../../mk/bsd.pkg.mk"