Lines 5-11
Link Here
|
5 |
# $FreeBSD: ports/audio/swhplugins/Makefile,v 1.17 2004/03/28 00:04:13 kris Exp $ |
5 |
# $FreeBSD: ports/audio/swhplugins/Makefile,v 1.17 2004/03/28 00:04:13 kris Exp $ |
6 |
|
6 |
|
7 |
PORTNAME= swhplugins |
7 |
PORTNAME= swhplugins |
8 |
PORTVERSION= 0.4.3 |
8 |
PORTVERSION= 0.4.4 |
9 |
CATEGORIES= audio |
9 |
CATEGORIES= audio |
10 |
MASTER_SITES= http://plugin.org.uk/releases/%SUBDIR%/ |
10 |
MASTER_SITES= http://plugin.org.uk/releases/%SUBDIR%/ |
11 |
MASTER_SITE_SUBDIR= ${PORTVERSION} |
11 |
MASTER_SITE_SUBDIR= ${PORTVERSION} |
Lines 15-50
Link Here
|
15 |
COMMENT= Steve Harris' huge Collection of LADSPA Plugins |
15 |
COMMENT= Steve Harris' huge Collection of LADSPA Plugins |
16 |
|
16 |
|
17 |
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa |
17 |
BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa |
18 |
LIB_DEPENDS= fftw.2:${PORTSDIR}/math/fftw |
18 |
LIB_DEPENDS= fftw3.3:${PORTSDIR}/math/fftw3 |
19 |
|
19 |
|
20 |
# includes assember code |
20 |
# includes assember code |
21 |
ONLY_FOR_ARCHS= i386 amd64 |
21 |
ONLY_FOR_ARCHS= i386 amd64 |
22 |
|
22 |
|
|
|
23 |
USE_GNOME= gnometarget lthack |
23 |
USE_REINPLACE= yes |
24 |
USE_REINPLACE= yes |
24 |
USE_GMAKE= yes |
25 |
USE_GMAKE= yes |
25 |
USE_LIBTOOL_VER= 13 |
26 |
USE_INC_LIBTOOL_VER= 13 |
26 |
GNU_CONFIGURE= yes |
27 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
27 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
28 |
LDFLAGS="-L${LOCALBASE}/lib" |
28 |
CONFIGURE_ENV= CPPFLAGS="-fPIC -I${LOCALBASE}/include" \ |
|
|
29 |
LIBS="-L${LOCALBASE}/lib" |
30 |
CONFIGURE_ARGS+= --with-libintl-prefix=${LOCALBASE} |
31 |
INSTALLS_SHLIB= yes |
29 |
INSTALLS_SHLIB= yes |
32 |
|
30 |
|
33 |
.if !defined(WITHOUT_NLS) |
31 |
.if defined(WITH_3DNOW) |
|
|
32 |
CONFIGURE_ARGS+= --enable-3dnow |
33 |
.endif |
34 |
|
35 |
.if defined(WITHOUT_NLS) |
36 |
CONFIGURE_ARGS+= --disable-nls |
37 |
PLIST_SUB+= NLS="@comment " |
38 |
.else |
34 |
USE_GETTEXT= yes |
39 |
USE_GETTEXT= yes |
35 |
PLIST_SUB+= NLS="" |
40 |
PLIST_SUB+= NLS="" |
36 |
.else |
|
|
37 |
CONFIGURE_ARGS+=--disable-nls |
38 |
PLIST_SUB+= NLS="@comment " |
39 |
.endif |
41 |
.endif |
40 |
|
42 |
|
41 |
post-patch: |
43 |
post-patch: |
42 |
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g ; \ |
44 |
@${REINPLACE_CMD} -e 's|-O2 .*"|-lm"|g ; \ |
43 |
s|INCLUDED_LIBINTL=yes|INCLUDED_LIBINTL=no|g ; \ |
45 |
s|-O6 .*"|-fPIC -DPIC"|g' ${WRKSRC}/configure |
44 |
s|\\\$${top_builddir}/intl/libintl.a|-lintl|g ' \ |
46 |
@${REINPLACE_CMD} -e 's| metadata||g ; \ |
45 |
${WRKSRC}/configure |
47 |
s|gcc |$$(CC) |g ; \ |
46 |
@${REINPLACE_CMD} -e 's|#include <bits/nan.h>||g' \ |
48 |
s| -lc| $$(LDFLAGS)|g ; \ |
47 |
${WRKSRC}/gverb/gverb-test.c |
49 |
s|-lrt||g' ${WRKSRC}/Makefile.in |
48 |
@${REINPLACE_CMD} -e 's|-lrt||g' ${WRKSRC}/Makefile.in |
50 |
@${REINPLACE_CMD} -e 's|<stdint\.h>|<inttypes.h>|g ; \ |
|
|
51 |
s|ls_pcast |ls_pcast32 |g' ${WRKSRC}/ladspa-util.h |
52 |
|
53 |
# s|-Wl,-Bsymbolic -lc||g |
54 |
post-install: |
55 |
@${MKDIR} ${PREFIX}/share/ladspa/rdf |
56 |
${INSTALL_DATA} ${WRKSRC}/metadata/*.rdf ${PREFIX}/share/ladspa/rdf |
49 |
|
57 |
|
50 |
.include <bsd.port.mk> |
58 |
.include <bsd.port.mk> |