1 # Created by: alepulver
9 DISTVERSIONSUFFIX= .D510
11 MAINTAINER= aryeh.friedman@gmail.com
12 COMMENT= Transaction-based software configuration management system
16 LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
17 RUN_DEPENDS= tkdiff:${PORTSDIR}/textproc/tkdiff
19 USES= gettext ghostscript perl5 tk
23 CPPFLAGS+= "-I${LOCALBASE}/include"
24 CONFIGURE_ARGS= --with-nlsdir="${PREFIX}/share/locale"
25 CONFIGURE_ENV= WISH="${WISH}"
26 LDFLAGS+= -L${LOCALBASE}/lib
29 OPTIONS_DEFINE= DOCS NLS
32 # XXX Manpages are installed into ${DATADIR} too -- there's no easy way to
33 # stop this because we don't have Makefile.am provided. Maintainer will
34 # sort this with upstream.
39 .include <bsd.port.options.mk>
42 # Avoid "2>/dev/null" redirect in csh (ends up with empty manpath).
43 @${REINPLACE_CMD} -Ee 's|(MANPATH_PROG) 2>/dev/null|\1|' \
45 # Fix path to Tk interpreter.
46 @cd ${WRKSRC}/script && ${REINPLACE_CMD} -e 's|wish |${WISH} |' \
47 aebuffy.in aecomp.in aexver.in tkaeca.in tkaegis.in tkaenc.in \
48 tkaepa.in tkaer.in xaegis.in
49 # Import global variable "datadir" inside function (not found otherwise).
50 @${REINPLACE_CMD} -e 's|global lib|& datadir|' \
51 ${WRKSRC}/script/xaegis.in
54 .if empty(PORT_OPTIONS:MNLS)
55 ${REINPLACE_CMD} -e 's|HAVE_MSGFMT = yes|HAVE_MSGFMT = no|' \
60 ${MKDIR} -p ${STAGEDIR}${PREFIX}/com/aegis
61 # Fails to reinstall because keeps track of created directories, so make it
62 # forget that, by recreating them on each install.
63 @${FIND} ${WRKSRC} -type f -name ".*dir" -delete
65 .include <bsd.port.mk>