freebsd-ports/comms/ebook2cw/files/patch-Makefile
Diane Bruce 2fb341efa3 - Update to 0.8.2 [1]
0.8.2 / 2013-01-04   Fabian Kurz   <fabian@fkurz.net>
	* Time of conversion and speed-up calculations
	* Fixed text command |T0
	* Samplerate of output file now always according to -s parameter (no
	  longer using LAME's own preference for the given bitrate)
	* New text command |v for volume control
	* Chapter splitting now possible by duration (-d seconds)
	  and number of words (-l words) (suggested by DM3KPO)
	* Fix inconsistent numbers for waveforms (0 = sine, 1 = sawtooth,
	  2 = square)
	* Fix OGG/Vorbis headers in CGI mode
	* New CGI mode (make cgibuffered) where the whole sound file is
	  first created temporarily and then sent to the client.
	  This makes it possible to send the Content-Length header.
	* Code cleanup

PR:		ports/175117 [1]
Submitted by: 	Chris Petrik <c.petrik.sosa@gmail.com>
2013-01-16 18:15:33 +00:00

49 lines
1.5 KiB
Text

--- Makefile.orig 2013-01-04 09:33:04.000000000 -0500
+++ Makefile 2013-01-16 10:16:50.000000000 -0500
@@ -3,37 +3,26 @@
# $Id: Makefile 547 2012-12-29 21:07:53Z dj1yfk $
VERSION=0.8.2
-DESTDIR ?= /usr
-
-# Set to NO to compile without Lame/Ogg-vorbis support
-USE_LAME?=YES
-USE_OGG?=YES
+DESTDIR ?= %%PREFIX%%
+CC ?= gcc
CFLAGS:=$(CFLAGS) -D DESTDIR=\"$(DESTDIR)\" -D VERSION=\"$(VERSION)\"
+CFLAGS+= -I%%LOCALBASE%%/include -D LAME -D OGGV
+LDFLAGS+= -L%%LOCALBASE%%/lib -lmp3lame -lvorbis -lvorbisenc -logg
-ifeq ($(USE_LAME), YES)
- CFLAGS:=$(CFLAGS) -D LAME
- LDFLAGS:=$(LDFLAGS) -lmp3lame
-endif
-ifeq ($(USE_OGG), YES)
- CFLAGS:=$(CFLAGS) -D OGGV
- LDFLAGS:=$(LDFLAGS) -lvorbis -lvorbisenc -logg
-endif
-
-
-all: ebook2cw
+all: ebook2cw cgi
ebook2cw: ebook2cw.c codetables.h
- gcc ebook2cw.c -pedantic -Wall -lm $(LDFLAGS) $(CFLAGS) -o ebook2cw
+ ${CC} ebook2cw.c -pedantic -Wall -lm $(LDFLAGS) $(CFLAGS) -o ebook2cw
cgi: ebook2cw.c codetables.h
- gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -o cw.cgi
+ ${CC} -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -o cw.cgi
cgibuffered: ebook2cw.c codetables.h
- gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -D CGIBUFFERED -o cw.cgi
+ ${CC} -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -D CGIBUFFERED -o cw.cgi
static:
- gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -o ebook2cw
+ ${CC} -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -o ebook2cw
install:
install -d -v $(DESTDIR)/share/man/man1/