forked from Lainports/freebsd-ports
- Change USE_GNOME=pkgconfig|gnomehack to USES=pathfix|pkgconfig while here Reviewed by: bapt, kwm
54 lines
1.3 KiB
Makefile
54 lines
1.3 KiB
Makefile
# Created by: Florent Thoumie <flz@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cgit
|
|
PORTVERSION= 0.9.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= devel www
|
|
MASTER_SITES= http://git.zx2c4.com/cgit/snapshot/:cgit \
|
|
http://mirror.linux.org.au/software/scm/git/:git
|
|
DISTFILES= cgit-${PORTVERSION}${EXTRACT_SUFX}:cgit \
|
|
git-${GIT_VERSION}.tar.bz2:git
|
|
|
|
MAINTAINER= bapt@FreeBSD.org
|
|
COMMENT= A fast webinterface for git
|
|
|
|
LICENSE= GPLv2
|
|
|
|
GIT_VERSION= 1.7.4.4
|
|
USE_BZIP2= yes
|
|
USE_GMAKE= yes
|
|
USES= iconv
|
|
USE_GMAKE= yes
|
|
USE_OPENSSL= yes
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
MAKE_ENV+= CGIT_SCRIPT_PATH=${WWWDIR} \
|
|
CGIT_CONFIG=${PREFIX}/etc/cgitrc \
|
|
NEEDS_LIBICONV=yes
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST+= PORTNAME=${PORTNAME}
|
|
PLIST_SUB+= PORTNAME=${PORTNAME}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-extract:
|
|
@${RMDIR} ${WRKSRC}/git
|
|
@${MV} ${WRKDIR}/git-${GIT_VERSION} ${WRKSRC}/git
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/^CC =/d' ${WRKSRC}/git/Makefile
|
|
@${REINPLACE_CMD} -e 's,/usr,${PREFIX},g' \
|
|
-e 's,-Igit,-I.,g' ${WRKSRC}/Makefile
|
|
|
|
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.mk>
|