Changeset View
Changeset View
Standalone View
Standalone View
audio/swhplugins/Makefile
Show All 21 Lines | |||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
CFLAGS+= -fPIC -DPIC | CFLAGS+= -fPIC -DPIC | ||||
OPTIONS_DEFINE= NLS 3DNOW SSE | OPTIONS_DEFINE= NLS 3DNOW SSE | ||||
OPTIONS_SUB= yes | |||||
3DNOW_DESC= use 3DNow! instructions | 3DNOW_DESC= use 3DNow! instructions | ||||
SSE_DESC= use SSE instructions | SSE_DESC= use SSE instructions | ||||
.include <bsd.port.options.mk> | NLS_USES= gettext | ||||
.if ${PORT_OPTIONS:MNLS} | NLS_LDFLAGS= -lintl | ||||
USES+= gettext | NLS_CONFIGURE_ENABLE= nls | ||||
PLIST_SUB+= NLS="" | |||||
LDFLAGS+= -lintl | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-nls | |||||
PLIST_SUB+= NLS="@comment " | |||||
.endif | |||||
.if ${PORT_OPTIONS:M3DNOW} | 3DNOW_CONFIGURE_ENABLE= 3dnow | ||||
CONFIGURE_ARGS+= --enable-3dnow | |||||
.endif | |||||
.if ${PORT_OPTIONS:MSSE} | SSE_CONFIGURE_ENABLE= sse | ||||
CONFIGURE_ARGS+= --enable-sse | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e \ | @${REINPLACE_CMD} -e \ | ||||
's|="$$CFLAGS -Wall .*"|="$$CFLAGS"|g' ${WRKSRC}/configure | 's|="$$CFLAGS -Wall .*"|="$$CFLAGS"|g' ${WRKSRC}/configure | ||||
@${REINPLACE_CMD} -e \ | @${REINPLACE_CMD} -e \ | ||||
's|<stdint\.h>|<inttypes.h>|g' ${WRKSRC}/ladspa-util.h | 's|<stdint\.h>|<inttypes.h>|g' ${WRKSRC}/ladspa-util.h | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |