1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00
freebsd-ports/devel/gcvs/Makefile
Pietro Cerutti ea6fe4fa96 - Convert to USES+=tk and USES+=gmake
- Fix build on CURRENT
2013-09-27 08:30:27 +00:00

36 lines
987 B
Makefile

# $FreeBSD$
PORTNAME= gcvs
PORTVERSION= 1.0
PORTREVISION= 14
PORTEPOCH= 1
CATEGORIES= devel tk
MASTER_SITES= SF/cvsgui/gCvs/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= High-end interface client for CVS
LICENSE= GPLv2
USE_GNOME= gtk12
USES+= gmake tk:wrapper
USE_AUTOTOOLS= aclocal autoheader automake autoconf
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS= --add-missing --force --copy --gnu
GNU_CONFIGURE= yes
CXXFLAGS:= ${CXXFLAGS:N-std=*:N:}
CONFIGURE_ARGS= --with-tclinclude=${TCL_INCLUDEDIR} \
--with-tcllib=${TCL_LIBDIR}
EXTRACT_AFTER_ARGS=--exclude cvsunix --exclude 'getline.[ch]' --exclude 'getopt*.[ch]'
post-patch:
${REINPLACE_CMD} -E '/get(line|opt1?)\.[ch]/d' \
${WRKSRC}/common/Makefile.am
${FIND} ${WRKSRC} -name '*.c*' | ${XARGS} ${REINPLACE_CMD} -E \
-e '/#include "getline\.h"/d' \
-e 's/"getopt\.h"/<getopt.h>/'
${REINPLACE_CMD} 's/cvsunix//g' \
${WRKSRC}/Makefile.am ${WRKSRC}/configure.in
.include <bsd.port.mk>