mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
b36a4c741c
- Switch to options helpers
33 lines
760 B
Makefile
33 lines
760 B
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= unpaper
|
|
PORTVERSION= 0.3
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= https://www.flameeyes.eu/files/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Post-processing tool for scanned sheets of paper
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
PORTDOCS= *
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
do-build:
|
|
@${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} \
|
|
${WRKSRC}/src/${PORTNAME}.c -lm
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@cd ${WRKSRC}/ && ${INSTALL_DATA} CHANGELOG README ${STAGEDIR}${DOCSDIR}
|
|
@cd ${WRKSRC}/doc/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|