Prune devel/py-EnthoughtBase
[dports.git] / devel / aegis / Makefile
1 # Created by: alepulver
2 # $FreeBSD$
3
4 PORTNAME=       aegis
5 PORTVERSION=    4.25
6 PORTREVISION=   2
7 CATEGORIES=     devel
8 MASTER_SITES=   SF
9 DISTVERSIONSUFFIX=      .D510
10
11 MAINTAINER=     aryeh.friedman@gmail.com
12 COMMENT=        Transaction-based software configuration management system
13
14 LICENSE=        GPLv3
15
16 LIB_DEPENDS=    libcurl.so:${PORTSDIR}/ftp/curl
17 RUN_DEPENDS=    tkdiff:${PORTSDIR}/textproc/tkdiff
18
19 USES=           gettext ghostscript perl5 tk
20 USE_GNOME=      libxml2
21 USE_GCC=        any
22 GNU_CONFIGURE=  yes
23 CPPFLAGS+=      "-I${LOCALBASE}/include"
24 CONFIGURE_ARGS= --with-nlsdir="${PREFIX}/share/locale"
25 CONFIGURE_ENV=  WISH="${WISH}"
26 LDFLAGS+=       -L${LOCALBASE}/lib
27 MAKE_JOBS_UNSAFE=       yes
28
29 OPTIONS_DEFINE= DOCS NLS
30 OPTIONS_SUB=    yes
31
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.
35
36 PORTDATA=       *
37 PORTDOCS=       *
38
39 .include <bsd.port.options.mk>
40
41 post-patch:
42 # Avoid "2>/dev/null" redirect in csh (ends up with empty manpath).
43         @${REINPLACE_CMD} -Ee 's|(MANPATH_PROG) 2>/dev/null|\1|' \
44                 ${WRKSRC}/configure
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
52
53 post-configure:
54 .if empty(PORT_OPTIONS:MNLS)
55         ${REINPLACE_CMD} -e 's|HAVE_MSGFMT = yes|HAVE_MSGFMT = no|' \
56                 ${WRKSRC}/Makefile
57 .endif
58
59 post-install:
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
64
65 .include <bsd.port.mk>