1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Fix build with clang (overzelous -Werror)

- Add staging support
- Convert to new LIB_DEPENDS format, options helpers, USES=libtool
- Use @sample for config file

MFH:		2014Q3
This commit is contained in:
Pawel Pekala 2014-07-11 16:33:59 +00:00
parent 5dd6770736
commit bcb7549350
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361564
2 changed files with 12 additions and 24 deletions

View File

@ -3,47 +3,39 @@
PORTNAME= pdfFox
PORTVERSION= 0.5.0
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF/razorbacktm/Nuggets
PKGNAMEPREFIX= razorback-
DIST_SUBDIR= razorback
MAINTAINER= ports@FreeBSD.org
MAINTAINER= ports@FreeBSD.org
COMMENT= Framework for an intelligence driven security - PDF Fox
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= razorback_api:${PORTSDIR}/security/razorback-api
LIB_DEPENDS= librazorback_api.so:${PORTSDIR}/security/razorback-api
BUILD_DEPENDS= razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget
RUN_DEPENDS= razorback-masterNugget>=0.5.0:${PORTSDIR}/security/razorback-masterNugget
OPTIONS_DEFINE= DEBUG ASSERT
ASSERT_DESC= Enable Asserts
RB_LIBDIR?= ${PREFIX}/lib/razorback
GNU_CONFIGURE= yes
USES= pkgconfig
USE_AUTOTOOLS= libtool
USES= libtool pkgconfig
USE_LDCONFIG= ${RB_LIBDIR}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
NO_STAGE= yes
.include <bsd.port.options.mk>
OPTIONS_DEFINE= DEBUG ASSERT
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif
ASSERT_DESC= Enable Asserts
ASSERT_CONFIGURE_ENABLE= assert
DEBUG_CONFIGURE_ENABLE= debug
.if ${PORT_OPTIONS:MASSERT}
CONFIGURE_ARGS+=--enable-assert
.endif
post-patch:
@${REINPLACE_CMD} '/CWARNINGS/ s|-Werror||' ${WRKSRC}/configure
post-install:
${LN} -sf ${RB_LIBDIR}/pdfFox.so.2 ${RB_LIBDIR}/pdfFox.so.2.0.0
@if [ ! -f ${PREFIX}/etc/razorback/pdffox.conf ]; then \
${CP} -p ${PREFIX}/etc/razorback/pdffox.conf.sample ${PREFIX}/etc/razorback/pdffox.conf ; \
fi
${LN} -sf ${RB_LIBDIR}/pdfFox.so.2 ${STAGEDIR}${RB_LIBDIR}/pdfFox.so.2.0.0
.include <bsd.port.mk>

View File

@ -1,10 +1,6 @@
@unexec if cmp -s %D/etc/razorback/pdffox.conf %D/etc/razorback/pdffox.conf.sample; then rm -f %D/etc/razorback/pdffox.conf; fi
etc/razorback/pdffox.conf.sample
@exec if [ ! -f %D/etc/razorback/pdffox.conf ]; then cp -p %D/%F %B/pdffox.conf; fi
@dirrmtry etc/razorback
@sample etc/razorback/pdffox.conf.sample
lib/razorback/pdfFox.so.2.0.0
lib/razorback/pdfFox.so.2
lib/razorback/pdfFox.so
lib/razorback/pdfFox.la
lib/razorback/pdfFox.a
@dirrmtry lib/razorback