aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/openipmi/Makefile
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2018-08-24 20:46:07 +0800
committergarga <garga@FreeBSD.org>2018-08-24 20:46:07 +0800
commit5f73dbc9444948c5829aa77803df7f83b8d39acc (patch)
treecd90d1d3d0261786c7433fdf683946130be4d5a1 /sysutils/openipmi/Makefile
parent86e5fac5ed7530f12add459eaebdabb0b957dd29 (diff)
downloadfreebsd-ports-gnome-5f73dbc9444948c5829aa77803df7f83b8d39acc.tar.gz
freebsd-ports-gnome-5f73dbc9444948c5829aa77803df7f83b8d39acc.tar.zst
freebsd-ports-gnome-5f73dbc9444948c5829aa77803df7f83b8d39acc.zip
sysutils/openipmi: Update to 2.0.25
Pass maintainership to submitter PR: 230052 Submitted by: Vinícius Zavam <egypcio@googlemail.com> Sponsored by: Rubicon Communications, LLC (Netgate)
Diffstat (limited to 'sysutils/openipmi/Makefile')
-rw-r--r--sysutils/openipmi/Makefile44
1 files changed, 23 insertions, 21 deletions
diff --git a/sysutils/openipmi/Makefile b/sysutils/openipmi/Makefile
index e06fc7b1b173..58b6ff888bc4 100644
--- a/sysutils/openipmi/Makefile
+++ b/sysutils/openipmi/Makefile
@@ -2,27 +2,24 @@
# $FreeBSD$
PORTNAME= openipmi
-PORTVERSION= 2.0.21
-PORTREVISION= 1
+PORTVERSION= 2.0.25
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/OpenIPMI%202.0%20Library
DISTNAME= OpenIPMI-${PORTVERSION}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= egypcio@googlemail.com
COMMENT= Complex IPMI management software
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpopt.so:devel/popt
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
-USES= gmake libtool ncurses pathfix pkgconfig
+USES= gmake libtool ncurses pathfix pkgconfig localbase:ldflags
USE_LDCONFIG= yes
-CPPFLAGS+= -I../include -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib
-
OPTIONS_DEFINE= SSL SNMP PERL PYTHON TCL TKINTER GDBM
OPTIONS_RADIO= GLIB
OPTIONS_RADIO_GLIB= GLIB12 GLIB20
@@ -58,8 +55,8 @@ CONFIGURE_ARGS+= --with-openssl=no
.endif
.if ${PORT_OPTIONS:MTKINTER}
-USES+= python
-WITH_PYTHON= yes
+USES+= python shebangfix
+SHEBANG_FILES= swig/python/openipmigui.py
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tkinter>0:x11-toolkits/py-tkinter@${PY_FLAVOR} \
${LOCALBASE}/lib/Tix8.4.3/Tix.tcl:x11-toolkits/tix
CONFIGURE_ARGS+= --with-tkinter
@@ -72,11 +69,14 @@ PLIST_SUB+= TKINTER="@comment "
.if ${PORT_OPTIONS:MPERL}
WITH_SWIG= yes
USES+= perl5
-CONFIGURE_ARGS+= --with-perl
-PLIST_SUB+= PERL=""
+CONFIGURE_ARGS+= --with-perl ac_cv_path_perlprog=${PERL}
+LDFLAGS+= -L${SITE_ARCH}
+LIBS+= -L${SITE_ARCH}
+PLIST_SUB+= OIPMIPERL=""
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-swig_perl_Makefile.in
.else
CONFIGURE_ARGS+= --with-perl=no
-PLIST_SUB+= PERL="@comment "
+PLIST_SUB+= OIPMIPERL="@comment "
.endif
.if ${PORT_OPTIONS:MPYTHON}
@@ -106,21 +106,23 @@ LIB_DEPENDS+= libgdbm.so:databases/gdbm
.endif
.if ${PORT_OPTIONS:MGLIB12}
-USE_GNOME+= glib12
-CONFIGURE_ARGS+= --with-glib12 --with-glibver=1.2
-PLIST_SUB+= GLIB12=""
+USE_GNOME= glib12
+CONFIGURE_ARGS+= --with-glib --with-glibver=1.2 \
+ --with-glibcflags=-I${LOCALBASE}/include/glib-1.2 \
+ --with-gliblibs="-L${LOCALBASE}/lib -lglib -lgthread"
+MAKE_ENV+= GLIB_MAJOR_VERSION=1
+EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-glib_glib__os__hnd.c
+PLIST_SUB+= GLIB=""
.else
-CONFIGURE_ARGS+= --with-glib12=no
-PLIST_SUB+= GLIB12="@comment "
+PLIST_SUB+= GLIB="@comment "
.endif
.if ${PORT_OPTIONS:MGLIB20}
-USE_GNOME+= glib20
+USE_GNOME= glib20
CONFIGURE_ARGS+= --with-glib --with-glibver=2.0
-PLIST_SUB+= GLIB20=""
+PLIST_SUB+= GLIB=""
.else
-CONFIGURE_ARGS+= --with-glib=no
-PLIST_SUB+= GLIB20="@comment "
+PLIST_SUB+= GLIB="@comment "
.endif
post-patch: