mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
9a2c9f6d94
Approved by: portmgr (blanket)
39 lines
922 B
Makefile
39 lines
922 B
Makefile
PORTNAME= mdocml
|
|
PORTVERSION= 1.14.6
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= http://mdocml.bsd.lv/snapshots/ \
|
|
LOCAL/uqs
|
|
DISTNAME= mandoc-${DISTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= mdoc macro compiler
|
|
WWW= https://mdocml.bsd.lv/
|
|
|
|
LICENSE= ISCL
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/mandoc
|
|
|
|
HAS_CONFIGURE= yes
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} -e '/^CFLAGS/s/=/?=/' -e '/^PREFIX/s/=/?=/' \
|
|
-e 's/^INSTALL_PROGRAM.*/INSTALL_PROGRAM=${INSTALL_PROGRAM}/' \
|
|
-e 's|/var/www|${WWWDIR}|' \
|
|
-e 's|^MANDIR.*|MANDIR=${PREFIX}/share/man|' \
|
|
${WRKSRC}/Makefile.local
|
|
cp ${WRKSRC}/cgi.h.example ${WRKSRC}/cgi.h
|
|
|
|
post-build:
|
|
cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} man.cgi
|
|
|
|
post-install:
|
|
cd ${WRKSRC} && ${MAKE} ${MAKE_ARGS} cgi-install
|
|
|
|
.include <bsd.port.mk>
|