aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorDiane Bruce <db@FreeBSD.org>2008-06-24 14:14:24 +0000
committerDiane Bruce <db@FreeBSD.org>2008-06-24 14:14:24 +0000
commitbef621f2c8455054c9b17a25b592f869377f03e8 (patch)
treef970b80ee7bc218eeed8dd906cd1d7fd74b386ce /comms
parent33678b24e472149603089febdccd8eab2541ad29 (diff)
downloadports-bef621f2c8455054c9b17a25b592f869377f03e8.tar.gz
ports-bef621f2c8455054c9b17a25b592f869377f03e8.zip
Notes
Diffstat (limited to 'comms')
-rw-r--r--comms/qrq/Makefile20
-rw-r--r--comms/qrq/distinfo6
-rw-r--r--comms/qrq/files/patch-Makefile43
3 files changed, 51 insertions, 18 deletions
diff --git a/comms/qrq/Makefile b/comms/qrq/Makefile
index d37201d91de6..302ee08f0242 100644
--- a/comms/qrq/Makefile
+++ b/comms/qrq/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= qrq
-PORTVERSION= 0.1.3
+PORTVERSION= 0.1.4
CATEGORIES= comms hamradio
MASTER_SITES= http://fkurz.net/ham/qrq/ \
${MASTER_SITE_LOCAL}
@@ -17,20 +17,10 @@ COMMENT= Morse telegraphy trainer similar to the classic DOS version by DL4MM
MAN1= qrq.1
-LDFLAGS+= -lm -lncurses -lpthread
-CFLAGS+= -DDESTDIR=\"${PREFIX}\" -DVERSION=\"${PORTVERSION}\"
+USE_GMAKE= yes
-do-build:
- ${CC} ${CFLAGS} ${LDFLAGS} ${WRKSRC}/${PORTNAME}.c \
- -o ${WRKSRC}/${PORTNAME}
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/qrqscore ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/${MAN1} ${MANPREFIX}/man/man1
- ${MKDIR} ${DATADIR}
-.for f in callbase qrqrc toplist
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
-.endfor
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
+ -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' ${WRKSRC}/Makefile
.include <bsd.port.mk>
diff --git a/comms/qrq/distinfo b/comms/qrq/distinfo
index ec5d7622d6cf..a7c40d9fb558 100644
--- a/comms/qrq/distinfo
+++ b/comms/qrq/distinfo
@@ -1,3 +1,3 @@
-MD5 (qrq-0.1.3.tar.gz) = f2896f6aa1cea3a2140a7cb900710511
-SHA256 (qrq-0.1.3.tar.gz) = e88110d30500ac504ccffd2fd036c6345c62cf545953eaf8e71bb9387ebe7f68
-SIZE (qrq-0.1.3.tar.gz) = 81734
+MD5 (qrq-0.1.4.tar.gz) = 398b7368e10617deeba8e0e159755d7e
+SHA256 (qrq-0.1.4.tar.gz) = 6c9bd2e3d5c1d06c6a84e910deeff3c1e7a7f2c4c0f0376ddfb11fa4855aff9a
+SIZE (qrq-0.1.4.tar.gz) = 95912
diff --git a/comms/qrq/files/patch-Makefile b/comms/qrq/files/patch-Makefile
new file mode 100644
index 000000000000..b78aad3b6a2b
--- /dev/null
+++ b/comms/qrq/files/patch-Makefile
@@ -0,0 +1,43 @@
+--- Makefile.orig 2008-06-22 15:27:57.000000000 -0400
++++ Makefile 2008-06-23 21:33:21.000000000 -0400
+@@ -1,7 +1,8 @@
+ # qrq Makefile -- Fabian Kurz, DJ1YFK -- http://fkurz.net/ham/qrq.html
+
+ VERSION=0.1.4
+-DESTDIR?=/usr
++DESTDIR=%%PREFIX%%
++LDFLAGS+=%%PTHREAD_LIBS%%
+
+ # set to YES if you want to use OpenAL instead of OSS
+ # note that you must use OpenAL for OSX
+@@ -38,13 +39,13 @@
+ all: qrq
+
+ qrq: $(OBJECTS)
+- g++ -pthread -Wall -lm -lncurses $(LDFLAGS) -o $@ $^
++ g++ -Wall -lm -lncurses $(LDFLAGS) -o $@ $^
+
+ .c.o:
+- gcc $(CFLAGS) -c $<
++ $(CC) $(CFLAGS) -c $<
+
+ .cpp.o:
+- g++ $(CFLAGS) -c $<
++ $(CPP) $(CFLAGS) -c $<
+
+ ifeq ($(OSX_BUNDLE), YES)
+
+@@ -71,11 +72,11 @@
+
+ install: qrq
+ install -d -v $(DESTDIR)/share/qrq/
+- install -d -v $(DESTDIR)/share/man/man1/
++ install -d -v $(DESTDIR)/man/man1/
+ install -d -v $(DESTDIR)/bin/
+ install -s -m 0755 qrq $(DESTDIR)/bin/
+ install -m 0755 qrqscore $(DESTDIR)/bin/
+- install -m 0644 qrq.1 $(DESTDIR)/share/man/man1/
++ install -m 0644 qrq.1 $(DESTDIR)/man/man1/
+ install -m 0644 callbase $(DESTDIR)/share/qrq/
+ install -m 0644 qrqrc $(DESTDIR)/share/qrq/
+ install -m 0644 toplist $(DESTDIR)/share/qrq/