freebsd-ports/misc/chmlib/files/patch-Makefile
Ying-Chieh Liao ae533b0f59 add chmlib 0.3.1
A library for dealing with Microsoft ITSS/CHM format files
2003-04-05 18:37:18 +00:00

19 lines
599 B
Text

--- Makefile.orig Sat Apr 5 23:57:17 2003
+++ Makefile Sun Apr 6 02:30:25 2003
@@ -7,11 +7,11 @@
# Note: LDFLAGS must contain -lpthread if you are using -DCHM_MT.
#
#CFLAGS=-DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64
-CFLAGS=-DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -g -DDMALLOC_DISABLE
-LDFLAGS=-lpthread
-INSTALLPREFIX=/usr/local/
-CC=gcc-3.2
-LD=gcc-3.2
+CFLAGS+=-DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -DDMALLOC_DISABLE
+LDFLAGS=${PTHREAD_LIBS}
+INSTALLPREFIX=${PREFIX}
+#CC=gcc-3.2
+LD=${CC}
LIBTOOL=libtool
CP=/bin/cp
EXAMPLES=test_chmLib enum_chmLib enumdir_chmLib chm_http extract_chmLib