1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/devel/cgit/Makefile
Guido Falsi 642be1b81d - Make ports use the libc provided iconv implementation on 10-CURRENT
after r254273
- Fix a bunch of ports to properly work after this
- Mark converters/libiconv as IGNORE for systems with iconv in libc

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Discussed with:	bapt, bsam (who both contributed ideas and code)
2013-09-04 18:06:07 +00:00

64 lines
1.6 KiB
Makefile

# Created by: Florent Thoumie <flz@FreeBSD.org>
# $FreeBSD$
PORTNAME= cgit
PORTVERSION= 0.9.2
PORTREVISION= 3
CATEGORIES= devel www
MASTER_SITES= http://git.zx2c4.com/cgit/snapshot/:cgit \
GOOGLE_CODE:git
DISTFILES= cgit-${PORTVERSION}${EXTRACT_SUFX}:cgit \
git-${GIT_VERSION}.tar.gz:git
MAINTAINER= kevinz5000@gmail.com
COMMENT= Fast web frontend for Git repositories
LICENSE= GPLv2
PROJECTHOST= git-core
GIT_VERSION= 1.8.2.3
USE_BZIP2= yes
USE_GMAKE= yes
USES= iconv shebangfix
SHEBANG_FILES= filters/html-converters/resources/markdown.pl
USE_GMAKE= yes
USE_OPENSSL= yes
CFLAGS+= -I${LOCALBASE}/include
MAKE_ARGS+= CGIT_SCRIPT_PATH=${WWWDIR} \
CGIT_CONFIG=${PREFIX}/etc/cgitrc NO_GETTEXT=1
LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES= pkg-message
SUB_LIST+= PORTNAME=${PORTNAME}
PLIST_SUB+= PORTNAME=${PORTNAME} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
post-extract:
@${RMDIR} ${WRKSRC}/git
@${MV} ${WRKDIR}/git-${GIT_VERSION} ${WRKSRC}/git
post-patch:
@${REINPLACE_CMD} -e '/^CC =/d' -e '/^CFLAGS =/d' \
-e '/^LDFLAGS =/d' ${WRKSRC}/git/Makefile \
${WRKSRC}/git/Makefile
@${REINPLACE_CMD} -e 's,/usr,${PREFIX},g' \
-e 's,-Igit,-I.,g' ${WRKSRC}/Makefile
.if empty(ICONV_LIB)
@${REINPLACE_CMD} -e '/NEEDS_LIBICONV = YesPlease/d' \
-e '/OLD_ICONV = YesPlease/d' \
${WRKSRC}/git/config.mak.uname
.endif
post-install:
@${MKDIR} /var/cache/${PORTNAME}
@${CHOWN} ${WWWOWN}:${WWWGRP} /var/cache/${PORTNAME}
@${CAT} ${PKGMESSAGE}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}rc.5.txt ${DOCSDIR}/
.endif
.include <bsd.port.post.mk>