- 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 PORTNAME= gspeakers
PORTVERSION= 0.11 PORTVERSION= 0.11
PORTREVISION= 15 PORTREVISION= 16
CATEGORIES= audio CATEGORIES= audio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} 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 LIB_DEPENDS= libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24
USES= gmake pkgconfig USES= autoreconf gmake pkgconfig
USE_GNOME= gnomeprefix libxml2 USE_GNOME= gnomeprefix libxml2
USE_AUTOTOOLS= automake:env
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS+= -O0 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 RUN_DEPENDS+= spice3:${PORTSDIR}/cad/spice
.else .else
RUN_DEPENDS+= gnucap:${PORTSDIR}/cad/gnucap RUN_DEPENDS+= gnucap:${PORTSDIR}/cad/gnucap
@ -33,15 +37,12 @@ post-extract:
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|$$(datadir)/pixmaps|$$(pkgdatadir)/pixmaps|g' \ @${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' \ @${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' \ @${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' \ @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' \
${WRKSRC}/src/*.cc ${WRKSRC}/src/cellitemcrossover.h ${WRKSRC}/src/*.cc ${WRKSRC}/src/cellitemcrossover.h
pre-configure:
@${CP} ${AUTOMAKE_DIR}/depcomp ${WRKSRC}
.include <bsd.port.mk> .include <bsd.port.mk>