1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- Support CC properly

PR:		ports/185693
Submitted by:	KATO Tsuguru <tkato432@yahoo.com>
This commit is contained in:
Vanilla I. Shu 2014-01-15 08:05:53 +00:00
parent 86f6d8849e
commit 5c110cd44d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339762
3 changed files with 13 additions and 56 deletions

View File

@ -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
MAKE_ARGS+= SRCDIR=${WRKSRC} PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
WRKSRC= ${WRKDIR}/${DISTNAME}
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>

View File

@ -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

View File

@ -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