summaryrefslogtreecommitdiff
path: root/textproc/dict-server/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-07 22:17:24 +0000
committerjoerg <joerg>2009-07-07 22:17:24 +0000
commit43d83fad749e061fcaa5fd6d96d290a4c7bca672 (patch)
tree3b99534c3df848cc3df6d11505de1c9819144bcb /textproc/dict-server/Makefile
parentd39b2656f259b5e0b994639e6a35de0171704071 (diff)
downloadpkgsrc-43d83fad749e061fcaa5fd6d96d290a4c7bca672.tar.gz
user-destdir support
Diffstat (limited to 'textproc/dict-server/Makefile')
-rw-r--r--textproc/dict-server/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/textproc/dict-server/Makefile b/textproc/dict-server/Makefile
index d4d3555e108..8f90d438a8e 100644
--- a/textproc/dict-server/Makefile
+++ b/textproc/dict-server/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2006/11/24 23:04:15 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2009/07/07 22:19:53 joerg Exp $
DISTNAME= dictd-1.9.15
PKGNAME= dict-server-1.9.15
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.dict.org/
COMMENT= Dictionary Service Protocol server
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= gmake lex yacc
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-cflags=${CFLAGS:M*:Q}
@@ -18,6 +20,7 @@ CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR:Q}
BUILD_TARGET= dictd dictzip
INSTALL_TARGET= install.dictd install.dictzip install.dictfmt
+INSTALLATION_DIRS= ${EGDIR} share/dictd
EGDIR= ${PREFIX}/share/examples/dict-server
CONF_FILES= ${EGDIR}/dictd.conf \
@@ -33,10 +36,8 @@ post-patch:
done
post-install:
- ${INSTALL_DATA_DIR} ${EGDIR}
${SED} "s#/usr/lib/dict#${PREFIX}/share/dictd#" \
- ${WRKSRC}/dictd.conf >${EGDIR}/dictd.conf
- ${INSTALL_DATA_DIR} ${PREFIX}/share/dictd
+ ${WRKSRC}/dictd.conf >${DESTDIR}${EGDIR}/dictd.conf
.include "../../devel/libltdl/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"