diff options
Diffstat (limited to 'audio/blop/Makefile')
-rw-r--r-- | audio/blop/Makefile | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/audio/blop/Makefile b/audio/blop/Makefile index d5a3b1e..f261cda 100644 --- a/audio/blop/Makefile +++ b/audio/blop/Makefile @@ -5,8 +5,7 @@ # $FreeBSD$ PORTNAME= blop -PORTVERSION= 0.2.7 -PORTREVISION= 1 +PORTVERSION= 0.2.8 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -21,14 +20,27 @@ USE_REINPLACE= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS= --with-ladspa-prefix="${LOCALBASE}" +OPTIONS= NLS "Native language support" on + +CPPFLAGS= -I${LOCALBASE}/include +LDFLAGS= -L${LOCALBASE}/lib + +.include <bsd.port.pre.mk> + +.if defined(WITHOUT_NLS) +CONFIGURE_ARGS+= --disable-nls +PLIST_SUB+= NLS="@comment " +.else +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.endif + post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ - 's|\$$(LIBS)|\$$(LIBS) \$$(LDFLAGS)|g ; \ + 's|$$(LIBS)$$|$$(LIBS) $$(LDFLAGS)|g ; \ s|-lc | |g' -pre-build: - cd ${WRKSRC}/src; ${GMAKE} sawtooth_data.h square_data.h parabola_data.h - -.include <bsd.port.mk> +.include <bsd.port.post.mk> |