1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/www/quark/Makefile
Tobias Kortkamp 1d8ca425a7 Replace do-patch in ports that override it with more appropriate targets
Most ports do not need to override do-patch.  It breaks some ports
tree features like EXTRA_PATCH_TREE, etc.
2019-11-07 18:18:17 +00:00

56 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= quark
DISTVERSION= g20190923
CATEGORIES= www
MASTER_SITES= https://people.freebsd.org/~0mp/distfiles/
PKGNAMESUFFIX= -server
DISTNAME= ${PKGNAME}
MAINTAINER= 0mp@FreeBSD.org
COMMENT= Small and simple HTTP GET/HEAD-only web server for static content
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
CONFLICTS_INSTALL= quark
MAKE_ARGS= MANPREFIX=${PREFIX}/man
PLIST_FILES= bin/quark \
man/man1/quark.1.gz
.include <bsd.port.options.mk>
# _WITH_DPRINTF support was removed precisely in r303524.
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200002
CFLAGS+= -D_WITH_DPRINTF
.endif
COMMIT_HASH= 3c7049e9063edebbd1934178f263f9f3c9b8ddf5
pre-everything::
@${ECHO_MSG} "You can build quark with your own config.h using the QUARK_CONF knob:"
@${ECHO_MSG} "make QUARK_CONF=/path/to/quark/config.h install clean"
post-patch:
${REINPLACE_CMD} -e '/^include config.mk$$/d' ${WRKSRC}/Makefile
.if defined(QUARK_CONF)
@${ECHO_MSG} "Creating config.h from ${QUARK_CONF}"
@${LN} -sf ${QUARK_CONF} ${WRKSRC}/config.h
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/quark
regenerate-distfile:
${RM} -r -- ${PKGNAME}
git clone -n https://git.suckless.org/quark ${PKGNAME}
git -C ${PKGNAME} checkout ${COMMIT_HASH}
${RM} -r -- ${PKGNAME}/.git
${TAR} -czf ${PKGNAME}.tar.gz ${PKGNAME}
scp ${PKGNAME}.tar.gz 0mp@freefall.freebsd.org:~/public_html/distfiles
${RM} -r -- ${PKGNAME} ${PKGNAME}.tar.gz
.include <bsd.port.mk>