1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Use new LIB_DEPENDS syntax

- Convert USE_AUTOTOOLS=libtool -> USES=libtool
- Use options helpers
- Strip binaries
- Take maintainership
This commit is contained in:
Jason E. Hale 2014-06-19 02:04:01 +00:00
parent 518cd87fa5
commit ecbdb907ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=358337
2 changed files with 16 additions and 18 deletions

View File

@ -7,36 +7,34 @@ PORTREVISION= 3
CATEGORIES= math
MASTER_SITES= SF/qalculate/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= jhale@FreeBSD.org
COMMENT= Multi-purpose desktop calculator (backend library)
LIB_DEPENDS= cln:${PORTSDIR}/math/cln
LIB_DEPENDS= libcln.so:${PORTSDIR}/math/cln
USES= pkgconfig pathfix gmake
USES= pkgconfig pathfix gmake libtool
USE_GNOME= glib20 intlhack libxml2
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
OPTIONS_DEFINE= NLS
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENV= GMSGFMT="${LOCALBASE}/bin/msgfmt"
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
.if ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's/^GMSGFMT = @GMSGFMT@/GMSGFMT = msgfmt/' ${WRKSRC}/po/Makefile.in.in
.else
.if !${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e '/^SUBDIRS =/s|po ||g' ${WRKSRC}/Makefile.in
.endif
@${REINPLACE_CMD} -e '/^SUBDIRS =/s|docs||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's/-pthread/${PTHREAD_LIBS}/g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' ${WRKSRC}/libqalculate.pc.in
@${REINPLACE_CMD} -e 's/-lpthread/${PTHREAD_LIBS}/g' \
${WRKSRC}/${CONFIGURE_SCRIPT} \
${WRKSRC}/libqalculate.pc.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libqalculate.so*
.include <bsd.port.mk>

View File

@ -13,9 +13,9 @@ include/libqalculate/includes.h
include/libqalculate/qalculate.h
include/libqalculate/util.h
lib/libqalculate.a
lib/libqalculate.la
lib/libqalculate.so
lib/libqalculate.so.5
lib/libqalculate.so.5.0.0
libdata/pkgconfig/libqalculate.pc
%%NLS%%share/locale/fr/LC_MESSAGES/libqalculate.mo
%%NLS%%share/locale/nl/LC_MESSAGES/libqalculate.mo