freebsd-ports/devel/aegis/Makefile
Hiroki Sato 27470e1676 - Split ghostscript into X11-independent and -dependent parts:
* print/ghostscript{7,8,9,9-agpl}-base

   Installs Ghostscript binary, libgs, and related files.
   These ports do not depend on X11 libraries (i.e. x11* devices
   are not available).  USES=ghostscript will set dependency on
   one of them depending on GHOSTSCRIPT_DEFAULT.

   The default device is set to "display" or "bbox".

 * print/ghostscript{7,8,9,9-agpl}-x11

   Installs a shared library which provides X11 support to
   the installed Ghostscript binaries.  x11* devices will be
   enabled when the library is available.

   This depends on *-base (RUN_DEPENDS).  USES=ghostscript:x11
   will set dependency on one of them.

- Fix integer overflow reported as CVE-2015-3228.

- Update Uses/ghostscript.mk:

 * Add x11 keyword.  nox11 keyword is now obsolete.

 * Use packagename in *_DEPENDS line to prevent relationship between
   -base and -x11 packages from being broken.

- Fix x11/nox11 keyword and bump PORTREVISION in ports using
  USES=ghostscript to update dependency of pre-compiled packages.
2015-08-22 17:48:35 +00:00

65 lines
1.8 KiB
Makefile

# Created by: alepulver
# $FreeBSD$
PORTNAME= aegis
PORTVERSION= 4.25
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= SF
DISTVERSIONSUFFIX= .D510
MAINTAINER= aryeh.friedman@gmail.com
COMMENT= Transaction-based software configuration management system
LICENSE= GPLv3
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
RUN_DEPENDS= tkdiff:${PORTSDIR}/textproc/tkdiff
USES= gettext ghostscript perl5 tk
USE_GNOME= libxml2
USE_GCC= any
GNU_CONFIGURE= yes
CPPFLAGS+= "-I${LOCALBASE}/include"
CONFIGURE_ARGS= --with-nlsdir="${PREFIX}/share/locale"
CONFIGURE_ENV= WISH="${WISH}"
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
# XXX Manpages are installed into ${DATADIR} too -- there's no easy way to
# stop this because we don't have Makefile.am provided. Maintainer will
# sort this with upstream.
PORTDATA= *
PORTDOCS= *
.include <bsd.port.options.mk>
post-patch:
# Avoid "2>/dev/null" redirect in csh (ends up with empty manpath).
@${REINPLACE_CMD} -Ee 's|(MANPATH_PROG) 2>/dev/null|\1|' \
${WRKSRC}/configure
# Fix path to Tk interpreter.
@cd ${WRKSRC}/script && ${REINPLACE_CMD} -e 's|wish |${WISH} |' \
aebuffy.in aecomp.in aexver.in tkaeca.in tkaegis.in tkaenc.in \
tkaepa.in tkaer.in xaegis.in
# Import global variable "datadir" inside function (not found otherwise).
@${REINPLACE_CMD} -e 's|global lib|& datadir|' \
${WRKSRC}/script/xaegis.in
post-configure:
.if empty(PORT_OPTIONS:MNLS)
${REINPLACE_CMD} -e 's|HAVE_MSGFMT = yes|HAVE_MSGFMT = no|' \
${WRKSRC}/Makefile
.endif
post-install:
${MKDIR} -p ${STAGEDIR}${PREFIX}/com/aegis
# Fails to reinstall because keeps track of created directories, so make it
# forget that, by recreating them on each install.
@${FIND} ${WRKSRC} -type f -name ".*dir" -delete
.include <bsd.port.mk>