Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $OpenBSD: Makefile,v 1.12 2016/03/18 23:12:17 naddy Exp $
  2. COMMENT = image extension for Tcl/Tk
  3. V = 1.4.2
  4. DISTNAME = tkimg$V
  5. PKGNAME = tkimg-$V
  6. SHLIB_VERSION = 0.0
  7. .for _lib in tkimgbmp142 tkimg142 tkimggif142 tkimgico142 tkimgjpeg142 \
  8. tkimgpcx142 tkimgpixmap142 tkimgpng142 tkimgppm142 tkimgps142 \
  9. tkimgsgi142 tkimgsun142 tkimgtga142 tkimgtiff142 tkimgwindow142 \
  10. tkimgxbm142 tkimgxpm142 tkimgraw142 tkimgdted142 zlibtcl128 \
  11. jpegtcl84 pngtcl1412 tifftcl394
  12. SHARED_LIBS += ${_lib} ${SHLIB_VERSION}
  13. .endfor
  14. REVISION = 0
  15. CATEGORIES = graphics
  16. HOMEPAGE = http://tkimg.sourceforge.net/
  17. MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
  18. # BSD
  19. PERMIT_PACKAGE_CDROM = Yes
  20. WANTLIB += X11 Xext Xft Xss fontconfig m
  21. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=tkimg/}
  22. MODULES = x11/tk
  23. BUILD_DEPENDS = ${MODTK_BUILD_DEPENDS} \
  24. devel/tcllib
  25. RUN_DEPENDS = ${MODTK_RUN_DEPENDS}
  26. TEST_DEPENDS = ${PKGPATH}
  27. SEPARATE_BUILD = Yes
  28. CONFIGURE_STYLE = gnu
  29. CONFIGURE_ARGS= --libdir=${MODTCL_TCLDIR} \
  30. --with-tcl=${MODTCL_LIBDIR} \
  31. --with-tclinclude=$(MODTCL_INCDIR) \
  32. --with-tk=${MODTK_LIBDIR} \
  33. --with-tkinclude=${MODTK_INCDIR} \
  34. --with-x \
  35. --x-includes=${X11BASE}/include
  36. WRKDIST = ${WRKDIR}/tkimg1.4
  37. TEST_IS_INTERACTIVE = X11
  38. TEST_TARGET = test
  39. INSTALL_TARGET = collate
  40. FAKE_FLAGS = INSTALL_ROOT=${DESTDIR} LIB_RUNTIME_DIR=${MODTCL_TCLDIR}/tkimg
  41. CONFIGURE_ENV = SHLIB_VERSION=${SHLIB_VERSION}
  42. post-install:
  43. echo 'set auto_path [concat $$auto_path $$dir]' > \
  44. ${DESTDIR}${MODTCL_TCLDIR}/tkimg/pkgIndex.tcl
  45. .include <bsd.port.mk>