aboutsummaryrefslogtreecommitdiffstats
path: root/devel/cvstrac
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2014-01-15 16:05:53 +0800
committervanilla <vanilla@FreeBSD.org>2014-01-15 16:05:53 +0800
commita52442ff8708de1a7f83fe1900a01bec614fea57 (patch)
treed0abc66060c28b7d3f567b9dcb5f70b1d2ba5023 /devel/cvstrac
parent998d8143f558ee0a8e87ce9ff8a2a0010e74ddfd (diff)
downloadfreebsd-ports-gnome-a52442ff8708de1a7f83fe1900a01bec614fea57.tar.gz
freebsd-ports-gnome-a52442ff8708de1a7f83fe1900a01bec614fea57.tar.zst
freebsd-ports-gnome-a52442ff8708de1a7f83fe1900a01bec614fea57.zip
- Support CC properly
PR: ports/185693 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'devel/cvstrac')
-rw-r--r--devel/cvstrac/Makefile21
-rw-r--r--devel/cvstrac/files/patch-Makefile37
-rw-r--r--devel/cvstrac/files/patch-main.mk11
3 files changed, 13 insertions, 56 deletions
diff --git a/devel/cvstrac/Makefile b/devel/cvstrac/Makefile
index 8721378734d7..f2c3f65fd426 100644
--- a/devel/cvstrac/Makefile
+++ b/devel/cvstrac/Makefile
@@ -10,19 +10,24 @@ DISTNAME= cvstrac-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT?= Web-Based Bug And Patch-Set Tracking System For CVS
-WRKSRC= ${WRKDIR}/cvstrac-${PORTVERSION}
-USE_SQLITE= yes
-USES= gmake pkgconfig
+LICENSE= GPLv2
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
-MAKE_ARGS+= SRCDIR=${WRKSRC} PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
+USES= gmake pkgconfig
+USE_SQLITE= yes
+MAKEFILE= bsd-gcc.mk
+MAKE_ARGS+= BCC="${CC} ${CPPFLAGS}" TCC="${CC} ${CPPFLAGS}" \
+ LIBSQLITE="${LDFLAGS}"
MAKE_JOBS_UNSAFE= yes
-NOMAN=
+CPPFLAGS+= $$(pkg-config --cflags sqlite3)
+LDFLAGS+= $$(pkg-config --libs sqlite3) -lcrypt -lm
+
PLIST_FILES= bin/${PORTNAME}
-NO_STAGE= yes
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- @${CAT} ${PKGMESSAGE}
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
+ ${STAGEDIR}${PREFIX}/bin)
.include <bsd.port.mk>
diff --git a/devel/cvstrac/files/patch-Makefile b/devel/cvstrac/files/patch-Makefile
deleted file mode 100644
index b216efed9f03..000000000000
--- a/devel/cvstrac/files/patch-Makefile
+++ /dev/null
@@ -1,37 +0,0 @@
---- ./Makefile.orig 2009-11-09 17:15:57.000000000 -0500
-+++ ./Makefile 2009-11-09 17:15:57.000000000 -0500
-@@ -0,0 +1,34 @@
-+#!/usr/bin/make
-+#
-+#### The toplevel directory of the source tree.
-+#
-+#SRCDIR = /home/drh/cvstrac/cvstrac
-+
-+#### C Compiler and options for use in building executables that
-+# will run on the platform that is doing the build.
-+#
-+BCC = gcc -g -O2 -I$(LOCALBASE)/include
-+
-+#### The suffix to add to executable files. ".exe" for windows.
-+# Nothing for unix.
-+#
-+E =
-+
-+#### C Compile and options for use in building executables that
-+# will run on the target platform. This is usually the same
-+# as BCC, unless you are cross-compiling.
-+#
-+TCC = gcc -g -O0 -Wall -I$(LOCALBASE)/include
-+
-+#### Extra arguments for linking against SQLite
-+#
-+LIBSQLITE = -L$(LOCALBASE)/lib `pkg-config --static --libs sqlite3` -lcrypt
-+
-+#### Installation directory
-+#
-+INSTALLDIR = $(PREFIX)/bin
-+
-+
-+# You should not need to change anything below this line
-+###############################################################################
-+include $(SRCDIR)/main.mk
diff --git a/devel/cvstrac/files/patch-main.mk b/devel/cvstrac/files/patch-main.mk
deleted file mode 100644
index 357032f56e42..000000000000
--- a/devel/cvstrac/files/patch-main.mk
+++ /dev/null
@@ -1,11 +0,0 @@
---- ./main.mk.orig 2009-11-09 17:16:12.000000000 -0500
-+++ ./main.mk 2009-11-09 17:16:19.000000000 -0500
-@@ -115,7 +115,7 @@
- $(BCC) -o maketestdb $(SRCDIR)/maketestdb.c $(LIBSQLITE)
-
- $(APPNAME): headers $(OBJ)
-- $(TCC) -o $(APPNAME) $(OBJ) $(LIBSQLITE)
-+ $(TCC) -o $(APPNAME) $(OBJ) $(LIBSQLITE) -lm
-
- index.html: $(SRCDIR)/webpage.html $(SRCDIR)/VERSION
- sed -f $(SRCDIR)/VERSION $(SRCDIR)/webpage.html >index.html