openbsd-ports/audio/rplay/patches/patch-rplayd_Makefile_in
2011-07-08 09:26:55 +00:00

41 lines
1.4 KiB
Plaintext

$OpenBSD: patch-rplayd_Makefile_in,v 1.1 2011/07/08 09:26:55 jasper Exp $
--- rplayd/Makefile.in.orig Wed Jun 9 08:27:43 1999
+++ rplayd/Makefile.in Fri Jul 8 11:24:13 2011
@@ -1,8 +1,9 @@
include @RPLAY_TOP@/Makefile.config
+bindir= $(exec_prefix)/sbin
srcdir = @srcdir@
VPATH = @srcdir@
-sysconfdir = @sysconfdir@
+sysconfdir = @sysconfdir@/rplay
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -11,7 +12,7 @@ MKINSTALLDIRS= @srcdir@/../mkinstalldirs
CPPFLAGS = $(CC_OPTIONS) -I. -I../include -I${srcdir} -I${srcdir}/../include \
-I${srcdir}/../lib -I${srcdir}/../adpcm \
- @GSM_INCS@ \
+ -I${DEPBASE}/include \
@RX_INCS@ @DEFS@ \
-DRPLAY_CONF=\"${sysconfdir}/rplay.conf\" \
-DRPLAY_HOSTS=\"${sysconfdir}/rplay.hosts\" \
@@ -25,7 +26,7 @@ CPPFLAGS = $(CC_OPTIONS) -I. -I../include -I${srcdir}
$(CC) -c $(CPPFLAGS) $(CFLAGS) $<
LDFLAGS= $(LD_OPTIONS) -L../librplay -lrplay -L../lib -lrp \
- -L../adpcm -ladpcm @GSM_LIBS@ -L../rx -lrx @LDFLAGS@ @LIBS@ -lm
+ -L../adpcm -ladpcm -L${LOCALBASE}/lib -lgsm -L../rx -lrx @LDFLAGS@ @LIBS@ -lm
TARGET= rplayd
@@ -54,7 +55,6 @@ $(TARGET): $(OBJS) ../librplay/$(LIBRPLAY_NAME) ../lib
install: all
$(MKINSTALLDIRS) $(sbindir)
$(INSTALL_PROGRAM) $(TARGET) $(sbindir)/$(TARGET)
- @test -x $(bindir)/$(TARGET) && echo "" && echo " Note: Consider removing $(bindir)/$(TARGET)" && echo ""
uninstall:
$(RM) $(bindir)/$(TARGET)