Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.8 2017/05/10 14:26:19 stu Exp $
  2. COMMENT = PNG photo image extension for Tcl/Tk
  3. V = 0.9
  4. DISTNAME = tkpng${V}
  5. PKGNAME = tkpng-${V}
  6. REVISION = 2
  7. CATEGORIES = graphics
  8. HOMEPAGE = http://www.muonics.com/FreeStuff/TkPNG/
  9. MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
  10. # BSD
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB = z
  13. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tkpng/}
  14. EXTRACT_SUFX = .tgz
  15. MODULES = x11/tk
  16. BUILD_DEPENDS = ${MODTK_BUILD_DEPENDS}
  17. RUN_DEPENDS = ${MODTK_RUN_DEPENDS}
  18. FAKE_FLAGS = PKG_DIR='$$(PACKAGE_NAME)' INSTALL_PROGRAM='$$(INSTALL_DATA)'
  19. SEPARATE_BUILD =Yes
  20. CONFIGURE_STYLE=gnu
  21. CONFIGURE_ARGS+=--with-tcl=${MODTCL_LIBDIR} \
  22. --with-tk=${MODTK_LIBDIR} \
  23. --with-tkinclude=${MODTK_INCDIR} \
  24. --libdir=${MODTCL_TCLDIR} \
  25. CFLAGS="${CFLAGS} -pthread"
  26. NO_TEST = Yes
  27. SUBST_VARS = VER
  28. VER = ${V:S/.//g}
  29. post-install:
  30. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tkpng
  31. ${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/license.terms \
  32. ${PREFIX}/share/doc/tkpng
  33. .include <bsd.port.mk>