aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2006-02-10 11:30:45 +0800
committerkuriyama <kuriyama@FreeBSD.org>2006-02-10 11:30:45 +0800
commit0a749340bed8e23a6e42421b34a6cc84e1d48c20 (patch)
tree5939ec649c1fb82abae25cbc45fe35bc1287536c
parentb38f664f123017c7f232906f63a036a99e8d5ad8 (diff)
downloadfreebsd-ports-graphics-0a749340bed8e23a6e42421b34a6cc84e1d48c20.tar.gz
freebsd-ports-graphics-0a749340bed8e23a6e42421b34a6cc84e1d48c20.tar.zst
freebsd-ports-graphics-0a749340bed8e23a6e42421b34a6cc84e1d48c20.zip
- Unbreak on 4.x.
Reported by: pointyhat via kris
-rw-r--r--textproc/senna/Makefile4
-rw-r--r--textproc/senna/files/patch-senna_in.h13
2 files changed, 15 insertions, 2 deletions
diff --git a/textproc/senna/Makefile b/textproc/senna/Makefile
index 1fbad39b2e6..f4415752825 100644
--- a/textproc/senna/Makefile
+++ b/textproc/senna/Makefile
@@ -21,8 +21,8 @@ USE_AUTOTOOLS= automake:14 autoconf:259 libtool:15
USE_GMAKE= YES
INSTALLS_SHLIB= YES
CONFIGURE_ARGS= --with-sennahome=${SENNA_HOME}
-CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
-MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
+CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+MAKE_ARGS= CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}"
WRKSRC= ${WRKDIR}/${PORTNAME}
SNAPDATE= 20060130
diff --git a/textproc/senna/files/patch-senna_in.h b/textproc/senna/files/patch-senna_in.h
new file mode 100644
index 00000000000..a0a842d15e0
--- /dev/null
+++ b/textproc/senna/files/patch-senna_in.h
@@ -0,0 +1,13 @@
+--- lib/senna_in.h.orig Fri Feb 10 12:01:06 2006
++++ lib/senna_in.h Fri Feb 10 12:05:57 2006
+@@ -83,6 +83,10 @@
+ #define PATH_SEPARATOR "/"
+ #endif /* WIN32 */
+
++#if defined(__FreeBSD__) && __FreeBSD__ <= 4
++typedef u_int8_t uint_least8_t;
++#endif
++
+ #ifdef HAVE_PTHREAD_H
+ #include <pthread.h>
+ typedef pthread_mutex_t sen_mutex;