utilize USE_GETOPT_LONG

PR:		51528
Submitted by:	Sergei Kolobov <sergei@kolobov.com>
This commit is contained in:
Ying-Chieh Liao 2003-05-07 17:52:41 +00:00
parent 5030e018d0
commit 306b356899
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=80388
3 changed files with 38 additions and 19 deletions

View file

@ -8,6 +8,7 @@
PORTNAME= dvorakng
PORTVERSION= 0.5.0
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://www.free.of.pl/n/nopik/
@ -15,20 +16,18 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A Dvorak typing tutor
USE_BZIP2= yes
USE_GETOPT_LONG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500041
LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
MAKE_ARGS= PROF="-I${LOCALBASE}/include ${CFLAGS}" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBS="-lncurses -lgnugetopt"
.else
MAKE_ARGS= PROF="${CFLAGS}"
.endif
DOCS= README TODO
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dvorakng ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -1,11 +1,28 @@
--- Makefile.orig Wed Mar 26 16:27:35 2003
+++ Makefile Wed Mar 26 16:27:42 2003
@@ -11,7 +11,7 @@
CC = gcc
CXX = g++
--- Makefile.orig Mon Mar 17 15:14:42 2003
+++ Makefile Tue Apr 29 03:00:34 2003
@@ -8,12 +8,10 @@
### That's all ###
-CC = gcc
-CXX = g++
PROF = #-g0 -O2
-CFLAGS = $(PROF) -fmessage-length=0 -Wall $(LIMIT_LENGTH)
+CFLAGS = $(PROF) -Wall $(LIMIT_LENGTH)
CXXFLAGS = $(CFLAGS)
LDFLAGS = $(PROF)
-CXXFLAGS = $(CFLAGS)
-LDFLAGS = $(PROF)
+CFLAGS += $(PROF) -fmessage-length=0 -Wall $(LIMIT_LENGTH)
+CXXFLAGS?= $(CFLAGS)
+LDFLAGS += $(PROF)
LIBS = -lncurses
OBJECTS = dvorakng.o lessons.o
@@ -30,6 +28,9 @@
dvorakng: $(OBJECTS)
$(CXX) -s $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
+
+.cpp.o:
+ $(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $>
clean:
rm -f $(OBJECTS) $(TARGET)

View file

@ -1 +1,4 @@
bin/dvorakng
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
%%PORTDOCS%%@dirrm %%DOCSDIR%%