- Switch to USES=autoreconf

- Turn WITH_SPICE into an option
This commit is contained in:
Dmitry Marakasov 2015-06-23 14:14:00 +00:00
parent b5e4693d8c
commit 7ba329742a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390412

View File

@ -4,7 +4,7 @@
PORTNAME= gspeakers
PORTVERSION= 0.11
PORTREVISION= 15
PORTREVISION= 16
CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
@ -13,16 +13,20 @@ COMMENT= Gnome-based loudspeaker design program
LIB_DEPENDS= libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24
USES= gmake pkgconfig
USES= autoreconf gmake pkgconfig
USE_GNOME= gnomeprefix libxml2
USE_AUTOTOOLS= automake:env
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -O0
.if defined(WITH_SPICE)
OPTIONS_DEFINE= SPICE
SPICE_DESC= Use spice instead of gnucap
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSPICE}
RUN_DEPENDS+= spice3:${PORTSDIR}/cad/spice
.else
RUN_DEPENDS+= gnucap:${PORTSDIR}/cad/gnucap
@ -33,15 +37,12 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e 's|$$(datadir)/pixmaps|$$(pkgdatadir)/pixmaps|g' \
${WRKSRC}/pixmaps/Makefile.in
${WRKSRC}/pixmaps/Makefile.am
@${REINPLACE_CMD} -e 's|-Wall -O0|@CXXFLAGS@|g' \
${WRKSRC}/src/Makefile.in
${WRKSRC}/src/Makefile.am
@${REINPLACE_CMD} -e 's|$$(datadir)/xml|$$(pkgdatadir)/xml|g' \
${WRKSRC}/xml/Makefile.in
${WRKSRC}/xml/Makefile.am
@${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
${WRKSRC}/src/*.cc ${WRKSRC}/src/cellitemcrossover.h
pre-configure:
@${CP} ${AUTOMAKE_DIR}/depcomp ${WRKSRC}
.include <bsd.port.mk>