Annotation of pkgsrc/textproc/dict-server/Makefile, Revision 1.19
1.19 ! rillig 1: # $NetBSD: Makefile,v 1.18 2005/05/22 20:08:34 jlam Exp $
1.1 tron 2:
1.15 adam 3: DISTNAME= dictd-1.9.15
4: PKGNAME= dict-server-1.9.15
1.1 tron 5: CATEGORIES= textproc
1.15 adam 6: MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dict/} \
7: ftp://ftp.dict.org/pub/dict/
1.1 tron 8:
9: MAINTAINER= mike@ethmoid.org
10: HOMEPAGE= http://www.dict.org/
1.2 wiz 11: COMMENT= Dictionary Service Protocol server
1.1 tron 12:
1.18 jlam 13: USE_TOOLS+= gmake
1.15 adam 14: USE_PKGINSTALL= yes
15: GNU_CONFIGURE= yes
1.19 ! rillig 16: CONFIGURE_ARGS+= --with-cflags=${CFLAGS:M*:Q}
! 17: CONFIGURE_ARGS+= --with-etcdir=${PKG_SYSCONFDIR:Q}
1.1 tron 18:
1.14 wiz 19: BUILD_TARGET= dictd dictzip
1.5 uebayasi 20: INSTALL_TARGET= install.dictd install.dictzip install.dictfmt
1.1 tron 21:
1.10 jmmv 22: EGDIR= ${PREFIX}/share/examples/dict-server
23: CONF_FILES= ${EGDIR}/dictd.conf \
24: ${PKG_SYSCONFDIR}/dictd.conf
25:
1.5 uebayasi 26: # A symbol T_USER is defined in trap.h so...
27: post-patch:
28: ${GREP} -lr T_USER ${WRKSRC} | \
29: while read f; do \
30: ${MV} $$f $${f}.orig; \
1.15 adam 31: ${SED} -e 's/T_USER/T_XUSER/g' \
32: -e 's/DICT_XUSER/DICT_USER/g' $${f}.orig >$$f; \
1.5 uebayasi 33: done
34:
1.1 tron 35: post-install:
1.10 jmmv 36: ${INSTALL_DATA_DIR} ${EGDIR}
1.1 tron 37: ${SED} "s#/usr/lib/dict#${PREFIX}/share/dictd#" \
1.10 jmmv 38: ${WRKSRC}/dictd.conf >${EGDIR}/dictd.conf
1.3 hubertf 39: ${INSTALL_DATA_DIR} ${PREFIX}/share/dictd
1.1 tron 40:
1.12 tv 41: .include "../../devel/libltdl/buildlink3.mk"
1.16 adam 42: .include "../../devel/zlib/buildlink3.mk"
1.15 adam 43:
1.1 tron 44: .include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>