1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/textproc/htmlise/Makefile
2021-04-06 16:31:07 +02:00

31 lines
689 B
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
PORTNAME= htmlise
PORTVERSION= 0.2
CATEGORIES= textproc
MASTER_SITES= http://www.ex-parrot.com/~chris/stuff/ \
LOCAL/ehaupt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Formats plain text as HTML
TABSIZE?= 8
SRC= htmlise tables markup inline
PLIST_FILES= bin/htmlise
post-patch:
@${REINPLACE_CMD} -e 's|\(TABSIZE\ \)[0-9]*|\1${TABSIZE}|' \
${WRKSRC}/${PORTNAME}.h
do-build:
.for f in ${SRC}
${CC} ${CFLAGS} -c ${WRKSRC}/${f}.c -o ${WRKSRC}/${f}.o
.endfor
${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${SRC:C/(.*)/${WRKSRC}\/\1.o/}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>