Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # $OpenBSD: Makefile,v 1.34 2017/04/10 11:46:23 sthen Exp $
  2. COMMENT= filemanager for X Window
  3. DISTNAME= xnc-4.4.7
  4. REVISION= 8
  5. DISTFILES= ${DISTNAME}.src${EXTRACT_SUFX}
  6. SHARED_LIBS= xncaqua 1.0 \
  7. xncfive 1.0
  8. CATEGORIES= misc x11
  9. HOMEPAGE= http://xnc.dubna.su
  10. MASTER_SITES= ${HOMEPAGE}/src/
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB += ICE SM X11 Xext c jpeg m png ${LIBCXX} util z tiff
  13. LIB_DEPENDS= graphics/tiff \
  14. graphics/png
  15. NO_TEST= Yes
  16. CONFIGURE_STYLE= autoconf old dest
  17. AUTOCONF_VERSION= 2.13
  18. CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
  19. CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
  20. LIBS="-L${LOCALBASE}/lib"
  21. CONFIGURE_ARGS= --with-x
  22. FAKE_FLAGS= LIBxncaqua_VERSION=${LIBxncaqua_VERSION} \
  23. LIBxncfive_VERSION=${LIBxncfive_VERSION}
  24. XNLAUNCHFILES= .launch.menu .xnlaunch.ini graphs.gif ives.gif kill.gif \
  25. map.gif netscape.gif term.gif tnet.gif
  26. pre-configure:
  27. @perl -pi -e 's,\@prefix\@,${PREFIX},g' ${WRKSRC}/xncdirs.h.in
  28. post-install:
  29. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xnc
  30. cd ${WRKSRC}/.xlaunch && \
  31. ${INSTALL_DATA} ${XNLAUNCHFILES} ${PREFIX}/share/examples/xnc
  32. cd ${PREFIX}/bin && \
  33. ${STRIP} iedit ives vs xjpegroot xnc xnlaunch xncloader xncsetup
  34. sed -e 's,^ ,,' <${PREFIX}/man/man1/xnlaunch.1 >${PREFIX}/man/cat1/xnlaunch.0
  35. rm -f ${PREFIX}/man/man1/xnlaunch.1
  36. .include <bsd.port.mk>