|
|
@@ -32,8 +32,8 @@ Packager: The OpenPKG Project
|
|
|
Distribution: OpenPKG [BASE]
|
|
|
Group: Graphics
|
|
|
License: GPL
|
|
|
-Version: 2.0.1
|
|
|
-Release: 20021009
|
|
|
+Version: 2.0.2
|
|
|
+Release: 20021022
|
|
|
|
|
|
# list of sources
|
|
|
Source0: http://www.boutell.com/gd/http/gd-%{version}.tar.gz
|
|
|
@@ -58,19 +58,27 @@ Provides: GD
|
|
|
|
|
|
%prep
|
|
|
%setup -q
|
|
|
+ awk <configure '/^print OUT/,/^EOM/ { print $0 }' >Makefile
|
|
|
%{l_shtool} subst \
|
|
|
- -e 's;default:.*;all: libgd.a $(PROGRAMS);' \
|
|
|
- -e 's;install:.*;install:;' \
|
|
|
- -e 's;--verbose;;' \
|
|
|
+ -e 's;^print OUT.*;;' \
|
|
|
+ -e 's;^EOM;all: libgd.a $(PROGRAMS);' \
|
|
|
+ -e 's;^install: .*;install: all;' \
|
|
|
+ -e 's;$sharedLinkHead;;' \
|
|
|
+ -e 's;$sharedLinkTail;;' \
|
|
|
+ -e 's;$oflags;;' \
|
|
|
+ -e 's;$lflags;;' \
|
|
|
+ -e 's;$includeDirs;;' \
|
|
|
+ -e 's;$libDirs;;' \
|
|
|
+ -e 's;$compiler;;' \
|
|
|
+ -e 's;$installPrefix;%{l_prefix};' \
|
|
|
+ -e 's;sh \./install-item ;%{l_shtool} install -c -m ;' \
|
|
|
+ -e 's;\\\(.\);\1;g' \
|
|
|
Makefile
|
|
|
- %{l_shtool} subst \
|
|
|
- -e 's;^\(#define DEFAULT_FONTPATH\).*$;\1 "%{l_prefix}/share/fonts/truetype";' \
|
|
|
- gd.h
|
|
|
|
|
|
%build
|
|
|
%{l_make} %{l_mflags} \
|
|
|
COMPILER="%{l_cc}" \
|
|
|
- CFLAGS="%{l_cflags -O} -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE" \
|
|
|
+ CFLAGS="%{l_cflags -O} -DHAVE_LIBPNG -DHAVE_LIBZ -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE" \
|
|
|
INCLUDEDIRS="-I. -I%{l_prefix}/include/libpng -I%{l_prefix}/include/freetype2 -I%{l_prefix}/include" \
|
|
|
LIBDIRS="-L. -L%{l_prefix}/lib" \
|
|
|
LIBS="-lm -lgd -lpng -lz -ljpeg -lfreetype -lm" \
|