Unbreak autoconf check with clang by not using nested function.
Replace gettext module while here.
This commit is contained in:
parent
24b6d9bb4a
commit
05d61abfd4
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.81 2017/02/06 20:20:23 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.82 2017/09/27 21:05:42 naddy Exp $
|
||||
|
||||
COMMENT= tools to connect your PalmOS(R) compatible handheld
|
||||
|
||||
DISTNAME= pilot-link-0.12.5
|
||||
REVISION= 9
|
||||
REVISION= 10
|
||||
|
||||
SHARED_LIBS += pisock 11.0 # 9.2
|
||||
SHARED_LIBS += pisync 2.0 # 1.3
|
||||
@ -21,17 +21,16 @@ EXTRACT_SUFX= .tar.bz2
|
||||
# GPLv2 - LGPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
||||
WANTLIB += c m perl png popt pthread readline termcap z
|
||||
WANTLIB += c iconv intl m perl png popt pthread readline termcap z
|
||||
# uses perl ABI
|
||||
|
||||
MODULES= devel/gettext
|
||||
|
||||
LIB_DEPENDS= graphics/png \
|
||||
devel/popt
|
||||
|
||||
USE_GMAKE= Yes
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
CONFIGURE_STYLE= autoconf
|
||||
AUTOCONF_VERSION= 2.65
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib" \
|
||||
ac_cv_lib_png_main=yes
|
||||
|
@ -1,20 +0,0 @@
|
||||
$OpenBSD: patch-configure,v 1.10 2017/05/04 14:21:34 espie Exp $
|
||||
|
||||
Index: configure
|
||||
--- configure.orig
|
||||
+++ configure
|
||||
@@ -15081,12 +15081,12 @@ $as_echo "#define HAVE_USB 1" >>confdefs.h
|
||||
usb_type=linux
|
||||
msg_usb="yes, Linux"
|
||||
;;
|
||||
- *freebsd*)
|
||||
+ *bsd*)
|
||||
|
||||
$as_echo "#define HAVE_USB 1" >>confdefs.h
|
||||
|
||||
usb_type=freebsd
|
||||
- msg_usb="yes, FreeBSD"
|
||||
+ msg_usb="yes, FreeBSD (OpenBSD)"
|
||||
;;
|
||||
*darwin*)
|
||||
|
29
comms/pilot-link/patches/patch-configure_ac
Normal file
29
comms/pilot-link/patches/patch-configure_ac
Normal file
@ -0,0 +1,29 @@
|
||||
$OpenBSD: patch-configure_ac,v 1.1 2017/09/27 21:05:42 naddy Exp $
|
||||
|
||||
Index: configure.ac
|
||||
--- configure.ac.orig
|
||||
+++ configure.ac
|
||||
@@ -196,8 +196,8 @@ AC_CACHE_CHECK([for cispeed and cospeed members of str
|
||||
ac_cv_termios_cspeed,
|
||||
|
||||
[AC_TRY_COMPILE(
|
||||
- [#include <termios.h>], [int main(void) {
|
||||
- struct termios t;t.c_ispeed=t.c_ospeed=0;}],
|
||||
+ [#include <termios.h>], [
|
||||
+ struct termios t;t.c_ispeed=t.c_ospeed=0;],
|
||||
ac_cv_termios_cspeed=yes,ac_cv_termios_cspeed=no)])
|
||||
|
||||
if test $ac_cv_termios_cspeed = yes; then
|
||||
@@ -321,10 +321,10 @@ else
|
||||
usb_type=linux
|
||||
msg_usb="yes, Linux"
|
||||
;;
|
||||
- *freebsd*)
|
||||
+ *bsd*)
|
||||
AC_DEFINE(HAVE_USB, 1, [Define if we have USB support])
|
||||
usb_type=freebsd
|
||||
- msg_usb="yes, FreeBSD"
|
||||
+ msg_usb="yes, FreeBSD (OpenBSD)"
|
||||
;;
|
||||
*darwin*)
|
||||
AC_DEFINE(HAVE_USB, 1, [Define if we have USB support])
|
Loading…
Reference in New Issue
Block a user