1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00

- Update to 0.8.1

0.8.1 / 2011-04-04   Fabian Kurz   <mail@fkurz.net>
	* Guessing of file encoding added (-g filename).
	* MP3 CGI fixed (crashed because OGG/Vorbis libs were called)
	* Chapter time now properly resetted after each chapter
	* Added -X switch (test mode: no encoder, no output files)
	* Lame or OGG support can be disabled in the Makefile

- N.B. the port does not support Lame or OGG support choice, both are enabled.
This commit is contained in:
Diane Bruce 2011-04-16 16:21:33 +00:00
parent e682063978
commit a4fea175f0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272807
3 changed files with 42 additions and 16 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= ebook2cw
PORTVERSION= 0.8.0
PORTVERSION= 0.8.1
CATEGORIES= comms hamradio
MASTER_SITES= http://fkurz.net/ham/ebook2cw/ \
${MASTER_SITE_LOCAL}

View File

@ -1,2 +1,2 @@
SHA256 (ebook2cw-0.8.0.tar.gz) = 4eea453ec7557ca2739de936343c2b872346bd8224f83f8e3d1d6cf34a713654
SIZE (ebook2cw-0.8.0.tar.gz) = 25711
SHA256 (ebook2cw-0.8.1.tar.gz) = 3f97d2e6fbb419f8c985b0cbe3a9d33bfaa8fd746ea3651ecf086e523395c908
SIZE (ebook2cw-0.8.1.tar.gz) = 26581

View File

@ -1,28 +1,54 @@
--- Makefile.orig 2011-01-25 16:10:27.000000000 -0500
+++ Makefile 2011-02-10 19:41:06.000000000 -0500
@@ -1,19 +1,19 @@
--- Makefile.orig 2011-04-04 15:57:55.000000000 -0400
+++ Makefile 2011-04-16 11:11:52.000000000 -0400
@@ -1,34 +1,26 @@
# ebook2cw Makefile -- Fabian Kurz, DJ1YFK -- http://fkurz.net/ham/ebook2cw.html
VERSION=0.8.0
VERSION=0.8.1
-DESTDIR ?= /usr
+DESTDIR ?= %%PREFIX%%
+DESTDIR ?= /usr/local
+CC ?= gcc
-# Set to NO to compile without Lame/Ogg-vorbis support
-USE_LAME?=YES
-USE_OGG?=YES
CFLAGS:=$(CFLAGS) -D DESTDIR=\"$(DESTDIR)\" -D VERSION=\"$(VERSION)\"
-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
+CFLAGS+= -I/usr/local/include -D LAME -D OGGV
+LDFLAGS+= -L/usr/local/lib -lmp3lame -lvorbis -lvorbisenc -logg
-all: ebook2cw
+all: ebook2cw cgi
ebook2cw: ebook2cw.c codetables.h
- gcc ebook2cw.c -pedantic -Wall -lm -lmp3lame -lvorbis -lvorbisenc -D DESTDIR=\"$(DESTDIR)\" -D VERSION=\"$(VERSION)\" -o ebook2cw
+ ${CC} -I%%PREFIX%%/include -L%%PREFIX%%/lib ebook2cw.c -pedantic -Wall -lm -lmp3lame -lvorbis -lvorbisenc -D DESTDIR=\"$(DESTDIR)\" -D VERSION=\"$(VERSION)\" -o ebook2cw
- 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 -lvorbis -lvorbisenc -logg -lmp3lame -lm -D DESTDIR=\"$(DESTDIR)\" -D VERSION=\"$(VERSION)\" -D CGI -o cw.cgi
+ ${CC} -I%%PREFIX%%/include -L%%PREFIX%%/lib -static ebook2cw.c -lvorbis -lvorbisenc -logg -lmp3lame -lm -D DESTDIR=\"$(DESTDIR)\" -D VERSION=\"$(VERSION)\" -D CGI -o cw.cgi
- gcc -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -o cw.cgi
+ ${CC} -static ebook2cw.c $(LDFLAGS) -lm $(CFLAGS) -D CGI -o cw.cgi
static:
- gcc -static ebook2cw.c -lvorbis -lvorbisenc -logg -lmp3lame -lm -D DESTDIR=\"$(DESTDIR)\" -D VERSION=\"$(VERSION)\" -o ebook2cw
-
+ ${CC} -I%%PREFIX%% -L%%PREFIX%% -static ebook2cw.c -lvorbis -lvorbisenc -logg -lmp3lame -lm -D DESTDIR=\"$(DESTDIR)\" -D VERSION=\"$(VERSION)\" -o ebook2cw
- 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/
install -d -v $(DESTDIR)/bin/
@@ -41,7 +33,7 @@
install -m 0644 ebook2cw.conf $(DESTDIR)/share/doc/ebook2cw/examples/
install -m 0644 isomap.txt $(DESTDIR)/share/doc/ebook2cw/examples/
install -m 0644 utf8map.txt $(DESTDIR)/share/doc/ebook2cw/examples/
-
+
uninstall:
rm -f $(DESTDIR)/bin/ebook2cw
rm -f $(DESTDIR)/share/man/man1/ebook2cw.1