Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # $OpenBSD: Makefile,v 1.25 2017/04/10 11:46:34 sthen Exp $
  2. COMMENT= OO toolkit for SGML parsing and entity management
  3. DISTNAME= sp-1.3.4
  4. REVISION = 2
  5. CATEGORIES= textproc
  6. HOMEPAGE= http://www.jclark.com/sp/
  7. MAINTAINER= Gerardo Santana Gomez Garrido <gerardo.santana@gmail.com>
  8. # BSD-like
  9. PERMIT_PACKAGE_CDROM= Yes
  10. WANTLIB= c m ${LIBCXX}
  11. MASTER_SITES= ftp://ftp.jclark.com/pub/sp/
  12. MAKE_FLAGS= CXX="${CXX}" \
  13. CXXFLAGS="${CXXFLAGS} -fno-implicit-templates -ansi" \
  14. DEFINES="-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE \
  15. -DSP_HAVE_SOCKET" \
  16. RANLIB="${RANLIB}"
  17. FAKE_FLAGS= prefix=${DESTDIR}${PREFIX} \
  18. INSTALL="${INSTALL_PROGRAM}"
  19. NO_TEST= Yes
  20. post-install:
  21. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sp
  22. ${INSTALL_DATA} ${WRKSRC}/doc/*.htm ${PREFIX}/share/doc/sp
  23. ${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
  24. ${WRKBUILD}/lib/libsp.a ${PREFIX}/lib
  25. ${INSTALL_DATA_DIR} ${PREFIX}/include/sp
  26. ${INSTALL_DATA} ${WRKSRC}/include/* ${PREFIX}/include/sp
  27. ${INSTALL_DATA} ${WRKSRC}/generic/* ${PREFIX}/include/sp
  28. .include <bsd.port.mk>