50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# New ports collection Makefile for: swhplugins
|
|
# Date created: 12 May 2002
|
|
# Whom: Tilman Linneweh <arved@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= swhplugins
|
|
PORTVERSION= 0.4.3
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://plugin.org.uk/releases/%SUBDIR%/
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION}
|
|
DISTNAME= swh-plugins-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Steve Harris' huge Collection of LADSPA Plugins
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
|
|
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw
|
|
|
|
# includes assember code
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
USE_LIBTOOL_VER= 13
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ENV= CPPFLAGS="-fPIC -I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE}
|
|
INSTALLS_SHLIB= yes
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
PLIST_SUB+= NLS=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
PLIST_SUB+= NLS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g ; \
|
|
s|INCLUDED_LIBINTL=yes|INCLUDED_LIBINTL=no|g ; \
|
|
s|\\\$${top_builddir}/intl/libintl.a|-lintl|g ' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|#include <bits/nan.h>||g' \
|
|
${WRKSRC}/gverb/gverb-test.c
|
|
@${REINPLACE_CMD} -e 's|-lrt||g' ${WRKSRC}/Makefile.in
|
|
|
|
.include <bsd.port.mk>
|