Files
ports/comms/morse/files/patch-Makefile
T
Älven ce8ceb06f7 comms/morse: update 2.5 => 2.6
* Switch to Gitlab upstream
* Use textproc/xmlto for man page generation
* Format using portfmt(1)
* Actualise patches to current version
* Use explicit localbase:ldflags helper for X11 option instead of CFLAGS and LDFLAGS
* Regression: build with X11 option set failed with:
  ./alarm.h:15:15: error: a parameter list without types is only allowed in a function definition

PR:		288513
Approved by:	yuri@ (Mentor)
2025-07-30 15:43:25 +04:00

41 lines
784 B
Plaintext

--- Makefile.orig 2024-02-14 19:40:27 UTC
+++ Makefile
@@ -28,10 +28,10 @@
#DEVICE = X11
#DEVICE = Linux
#DEVICE = OSS
-DEVICE = ALSA
+#DEVICE = ALSA
#DEVICE = PA
-VERSION=$(shell sed -n <NEWS '/^[0-9]/s/:.*//p' | head -1)
+VERSION = 2.6
MANPAGES = morse.1 QSO.1
DOCS = README NEWS COPYING TODO morse.xml $(MANPAGES)
@@ -44,11 +44,11 @@ morse:
all: morse QSO morse.1 QSO.1
morse:
- cd morse.d && make DEVICE=${DEVICE}
+ ${MAKE} -C morse.d DEVICE=${DEVICE}
ln morse.d/morse ./morse
QSO:
- cd qso.d && make
+ ${MAKE} -C qso.d
ln qso.d/QSO ./QSO
#
@@ -69,8 +69,8 @@ clean:
clean:
rm -f morse QSO *.1 *.html
- cd morse.d; make clean
- cd qso.d; make clean
+ ${MAKE} -C morse.d clean
+ ${MAKE} -C qso.d clean
pristine: clean
rm -f $(MANPAGES) morse.html