freebsd-ports/math/cddlib/Makefile
Max Brazhnikov 527a6292d6 math/cddlib:
- Update to 0.94l
- Adopt port
- Simplify COMMENT.
- Remove USE_GITHUB and include MASTER_SITES instead. We are only working with
  releases anyway, and the release tar.gz includes already build documentation,
  which means we don't depend on TeX Live for building the manual anymore.
- Replace MANUAL with the more common DOCS option.
- Remove do-install target and non-standard variable HEADERSDIR. The header
  files are installed in ${PREFIX}/include/cddlib by default. Create a link to
  ${PREFIX}/include/cdd in post-install target. Some applications expect the
  headers to be in cdddlib others in cdd, so we should provide both
  directories.
- Rewrite pkg-descr.

PR:		250878
Submitted by:	Moritz Schmitt
2020-12-15 12:29:12 +00:00

32 lines
805 B
Makefile

# $FreeBSD$
PORTNAME= cddlib
PORTVERSION= 0.94l
CATEGORIES= math
MASTER_SITES= https://github.com/cddlib/cddlib/releases/download/${DISTVERSION}/
MAINTAINER= moritz@schmi.tt
COMMENT= C-library implementation of the Double Description Method
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgmp.so:math/gmp
USES= autoreconf gmake libtool:build localbase:ldflags
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
OPTIONS_DEFINE= DOCS EXAMPLES
OPTIONS_SUB= yes
DOCS_DESC= Install cddlib user manual
EXAMPLES_DESC= Install cddlib examples
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
${RLN} ${STAGEDIR}${PREFIX}/include/cddlib ${STAGEDIR}${PREFIX}/include/cdd
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${MV} ${STAGEDIR}${DOCSDIR}/example* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>