Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # $OpenBSD: Makefile,v 1.26 2017/05/18 10:29:00 espie Exp $
  2. COMMENT= creates DVD file structures
  3. DISTNAME= dvdauthor-0.7.1
  4. REVISION= 0
  5. CATEGORIES= multimedia
  6. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=dvdauthor/}
  7. HOMEPAGE= http://dvdauthor.sourceforge.net/
  8. # GPLv2+
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB += MagickCore-6.Q16 c dvdread fontconfig freetype fribidi
  11. WANTLIB += iconv lzma m png xml2 z
  12. LIB_DEPENDS= devel/fribidi \
  13. devel/libdvdread \
  14. graphics/ImageMagick \
  15. textproc/libxml
  16. MAKE_FLAGS+= BISON="yacc"
  17. USE_GMAKE= Yes
  18. CONFIGURE_STYLE= gnu
  19. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  20. LDFLAGS="-L${LOCALBASE}/lib"
  21. WRKDIST= ${WRKDIR}/dvdauthor
  22. post-install:
  23. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/dvdauthor
  24. ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/dvdauthor
  25. .include <bsd.port.mk>
  26. # XXX there is some limited functionality that requires nested routines
  27. # the configure detection works with clang but not with our gcc
  28. # -> activate the extra functionality on gcc (see HAVE_NESTED_ROUTINES)
  29. .if !${PROPERTIES:Mclang}
  30. # error: trampoline code generation is not allowed without -ftrampolines
  31. CFLAGS += -ftrampolines
  32. .endif