aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2012-11-25 03:28:55 +0800
committerwxs <wxs@FreeBSD.org>2012-11-25 03:28:55 +0800
commita9fa130bba97b90648922de7f5e0fab1cdc71c10 (patch)
tree85433693eec2411ef4983e1e76ffe1a2728c8ade /graphics
parent533418e7ba6f10ee82e7f839d3aea00737820441 (diff)
downloadfreebsd-ports-gnome-a9fa130bba97b90648922de7f5e0fab1cdc71c10.tar.gz
freebsd-ports-gnome-a9fa130bba97b90648922de7f5e0fab1cdc71c10.tar.zst
freebsd-ports-gnome-a9fa130bba97b90648922de7f5e0fab1cdc71c10.zip
Convert to new options (DOCS only).
Assign maintainer to submitter. PR: ports/173572 Submitted by: nemysis <nemysis@gmx.ch> Feature safe: yes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/pngcheck/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/graphics/pngcheck/Makefile b/graphics/pngcheck/Makefile
index c97d82346733..0288e6aeb7cd 100644
--- a/graphics/pngcheck/Makefile
+++ b/graphics/pngcheck/Makefile
@@ -10,7 +10,7 @@ PORTVERSION= 2.3.0
CATEGORIES= graphics
MASTER_SITES= SF/png-mng/${PORTNAME}/${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= nemysis@gmx.ch
COMMENT= Checks the integrity of PNG images
MAKEFILE= Makefile.unx
@@ -19,12 +19,13 @@ MAKE_ARGS= CC="${CC}" LD="${CC}" CFLAGS="${CFLAGS} -DUSE_ZLIB" LIBS="-lz"
PORTDOCS= CHANGELOG README
PLIST_FILES= bin/pngcheck
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pngcheck ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>
RGS+= --enable-logfile .endif .if defined(WITH_MD5AUTH) CONFIGURE_ARGS+= --enable-md5auth .endif .if !defined(WITHOUT_IPV6) CONFIGURE_ARGS+= --enable-inet6 .endif .if !defined(WITHOUT_USERPREFS) CFLAGS+= -DUSERPREFS pre-everything:: @${ECHO_CMD} "If you don't want to let your users set their own revalias address" @${ECHO_CMD} "(in ~/.ssmtprc), please define WITHOUT_USERPREFS." .endif post-configure: @${REINPLACE_CMD} -e "s,/etc/ssl/certs/ssmtp.pem,${PREFIX}/etc/ssmtp/ssmtp.pem,g" \ ${WRKSRC}/ssmtp.c ${WRKSRC}/ssmtp.conf @${REINPLACE_CMD} -e "s, /etc, ${PREFIX}/etc,g" ${WRKSRC}/ssmtp.8 replace: @${REINPLACE_CMD} -e 's,^[^#],#&,g' ${MAILERCONF} @${ECHO_CMD} "sendmail ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF} @${ECHO_CMD} "send-mail ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF} @${ECHO_CMD} "mailq ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF} @${ECHO_CMD} "newaliases ${PREFIX}/sbin/ssmtp" >> ${MAILERCONF} @${ECHO_CMD} "hoststat ${TRUE}" >> ${MAILERCONF} @${ECHO_CMD} "purgestat ${TRUE}" >> ${MAILERCONF} pre-su-install: @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk>