mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
make png support optional (on by default)
add an option to make alevt use a smaller font (off by default)
This commit is contained in:
parent
0399cfd20b
commit
e1122221b5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=136109
2 changed files with 33 additions and 8 deletions
|
@ -14,9 +14,21 @@ MASTER_SITES= http://www.goron.de/~froese/alevt/
|
||||||
MAINTAINER= ports@FreeBSD.org
|
MAINTAINER= ports@FreeBSD.org
|
||||||
COMMENT= X11 Teletext decoding and display program. (reads from /dev/vbi)
|
COMMENT= X11 Teletext decoding and display program. (reads from /dev/vbi)
|
||||||
|
|
||||||
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
OPTIONS= PNG "export pages as png image" on \
|
||||||
|
SMALLFONT "use a smaller and thiner font" off
|
||||||
|
|
||||||
USE_X_PREFIX= yes
|
USE_X_PREFIX= yes
|
||||||
MAN1= alevt.1x alevt-date.1 alevt-cap.1
|
MAN1= alevt.1x alevt-date.1 alevt-cap.1
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if defined(WITH_PNG)
|
||||||
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
||||||
|
MAKE_ARGS+= -DWITH_PNG
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITH_SMALLFONT)
|
||||||
|
MAKE_ARGS+= -DWITH_SMALLFONT
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,12 +1,25 @@
|
||||||
--- Makefile.orig Tue Aug 20 05:17:53 2002
|
--- Makefile.orig Tue Aug 20 05:17:53 2002
|
||||||
+++ Makefile Wed May 25 12:15:57 2005
|
+++ Makefile Wed May 25 13:41:55 2005
|
||||||
@@ -6,28 +6,26 @@
|
@@ -1,33 +1,35 @@
|
||||||
# a smaller and thinner font
|
VER=1.6.1
|
||||||
#FONT=neep9
|
-OPT=-O2 -s
|
||||||
|
-#OPT=-O -g
|
||||||
|
+
|
||||||
|
+.if defined(WITH_PNG)
|
||||||
|
DEFS=-DWITH_PNG
|
||||||
|
+PNG_LIBS=-L${LOCALBASE}/lib -lpng -lz -lm
|
||||||
|
+.endif
|
||||||
|
+
|
||||||
|
+.if defined(WITH_SMALLFONT)
|
||||||
|
+FONT=neep9
|
||||||
|
+.else
|
||||||
|
FONT=vtxt
|
||||||
|
-# a smaller and thinner font
|
||||||
|
-#FONT=neep9
|
||||||
|
+.endif
|
||||||
|
|
||||||
-CFLAGS=$(OPT) -DVERSION=\"$(VER)\" $(DEFS) -I/usr/X11R6/include -I/usr/local/include -W
|
-CFLAGS=$(OPT) -DVERSION=\"$(VER)\" $(DEFS) -I/usr/X11R6/include -I/usr/local/include -W
|
||||||
+CFLAGS+=-DVERSION=\"$(VER)\" $(DEFS) -I${X11BASE}/include -I${LOCALBASE}/include -W
|
+CFLAGS+=-DVERSION=\"$(VER)\" $(DEFS) -I${X11BASE}/include -I${LOCALBASE}/include -W
|
||||||
+PNG_LIBS=-L${LOCALBASE}/lib -lpng -lz -lm
|
|
||||||
+X11_LIBS=-L${X11BASE}/lib -lX11
|
+X11_LIBS=-L${X11BASE}/lib -lX11
|
||||||
|
|
||||||
EXPOBJS=export.o exp-txt.o exp-html.o exp-gfx.o font.o
|
EXPOBJS=export.o exp-txt.o exp-html.o exp-gfx.o font.o
|
||||||
|
@ -35,7 +48,7 @@
|
||||||
|
|
||||||
font.o: font1.xbm font2.xbm
|
font.o: font1.xbm font2.xbm
|
||||||
fontsize.h: font1.xbm font2.xbm
|
fontsize.h: font1.xbm font2.xbm
|
||||||
@@ -69,13 +67,9 @@
|
@@ -69,13 +71,9 @@
|
||||||
# anything below this line is just for me!
|
# anything below this line is just for me!
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
|
|
Loading…
Add table
Reference in a new issue