Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $OpenBSD: Makefile,v 1.13 2016/03/16 21:19:37 naddy Exp $
  2. COMMENT = LADSPA plugins from Steve Harris
  3. DISTNAME = swh-plugins-0.4.15
  4. REVISION = 3
  5. CATEGORIES = audio
  6. HOMEPAGE = http://plugin.org.uk/
  7. # GPLv2
  8. PERMIT_PACKAGE_CDROM = Yes
  9. WANTLIB = fftw3f m pthread
  10. MASTER_SITES = ${HOMEPAGE}/releases/0.4.15/ \
  11. https://distfiles.nl/
  12. BUILD_DEPENDS = audio/ladspa \
  13. devel/libtool
  14. LIB_DEPENDS = math/fftw3,float
  15. AUTOMAKE_VERSION = 1.9
  16. AUTOCONF_VERSION = 2.59
  17. CONFIGURE_STYLE = autoconf automake
  18. CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include"
  19. CFLAGS += -fPIC
  20. # only "translation" is en_GB
  21. CONFIGURE_ARGS += --disable-nls
  22. AUTO_ENV = AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  23. AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
  24. post-extract:
  25. find ${WRKSRC} -type f -name '*.c' -print -execdir perl -pi \
  26. -e 's/^void\s+_init\(\)\s+{/void __init() __attribute__((constructor));\nvoid __init() {/;' \
  27. -e 's/^void\s+_fini\(\)\s+{/void __fini() __attribute__((destructor));\nvoid __fini() {/;' \
  28. {} \;
  29. post-patch:
  30. rm ${WRKSRC}/acconfig.h ${WRKSRC}/ladspa.h
  31. cd ${WRKSRC}; ${AUTO_ENV} aclocal -I . -I m4
  32. pre-configure:
  33. cd ${WRKSRC}; ${AUTO_ENV} automake --foreign --add-missing
  34. .include <bsd.port.mk>