90b214dfd1
- Install Emacs mode [2] - Simplify INSTALL_TARGET [2] - Unbreak build when NLS=off [2] - Pass maintainership [1] PR: 197786 Submitted by: Carlos Jacobo Puga Medina <cpm@fbsd.es> [1] Approved by: Carlos Jacobo Puga Medina <cpm@fbsd.es> [2]
72 lines
1.7 KiB
Makefile
72 lines
1.7 KiB
Makefile
# Created by: Andrew L. Neporada <andrew@chg.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pspp
|
|
PORTVERSION= 0.8.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= GNU
|
|
|
|
MAINTAINER= cpm@fbsd.es
|
|
COMMENT= Program for statistical analysis of sampled data
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= texinfo>0:${PORTSDIR}/print/texinfo
|
|
LIB_DEPENDS= libplot.so:${PORTSDIR}/graphics/plotutils \
|
|
libgslcblas.so:${PORTSDIR}/math/gsl
|
|
|
|
USES= charsetfix gmake iconv libtool perl5 pkgconfig readline
|
|
USE_GNOME= libxml2
|
|
USE_PERL5= build
|
|
GNU_CONFIGURE= yes
|
|
MAKE_ARGS= MAKEINFO="${LOCALBASE}/bin/makeinfo" \
|
|
XMLLINT="${LOCALBASE}/bin/xmllint"
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
PLIST_SUB= VERSION="${PORTVERSION}"
|
|
|
|
PORTDOCS= AUTHORS ChangeLog NEWS ONEWS README THANKS TODO
|
|
INFO= pspp pspp-dev
|
|
|
|
OPTIONS_DEFINE= DOCS GUI NLS PGSQL
|
|
OPTIONS_SUB= yes
|
|
|
|
GUI_LIB_DEPENDS= libgladeui-1.so:${PORTSDIR}/devel/glade3
|
|
GUI_RUN_DEPENDS= yelp:${PORTSDIR}/x11/yelp
|
|
GUI_USES= desktop-file-utils
|
|
GUI_USE= gnome=gtksourceview2,libglade2
|
|
GUI_CONFIGURE_WITH= cairo gui gui-tools
|
|
GUI_INSTALL_TARGET= install-icons install-ext-icons
|
|
NLS_USES= gettext
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
NLS_MAKE_ARGS_OFF= POFILES=""
|
|
PGSQL_USES= pgsql
|
|
PGSQL_CONFIGURE_WITH= libpq
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGUI}
|
|
INSTALLS_ICONS= yes
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|: $$(INSTALL_DATA_HOOKS)|:|' ${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/pspp-mode.el \
|
|
${STAGEDIR}${PREFIX}/share/emacs/site-lisp
|
|
.if ${PORT_OPTIONS:MGUI}
|
|
${RM} -r ${STAGEDIR}${PREFIX}/share/icons/hicolor/scalable/mimetypes
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
|
|
"${PORTDOCS}" ${STAGEDIR}${DOCSDIR})
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|