New package: tilp2-1.18

This commit is contained in:
Andrew Benson 2018-05-03 08:50:05 -05:00 committed by maxice8
parent 55e00cfeab
commit 4fa03f6439
2 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,65 @@
--- src/Makefile.am.orig
+++ src/Makefile.am
@@ -9,16 +9,16 @@
tilp_CPPFLAGS = -I$(top_srcdir)/intl \
@TICABLES_CFLAGS@ @TIFILES_CFLAGS@ @TICALCS_CFLAGS@ @TICONV_CFLAGS@ \
@GLIB_CFLAGS@ @GTK_CFLAGS@ \
- @KDE_INCLUDES@ @QT_INCLUDES@ \
-DSHARE_DIR=\"$(pkgdatadir)\" \
-DLOCALEDIR=\"$(datadir)/locale\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DGTK_DISABLE_DEPRECATED
+# @KDE_INCLUDES@ @QT_INCLUDES@
tilp_LDFLAGS = -export-dynamic
tilp_LDADD = @TICABLES_LIBS@ @TIFILES_LIBS@ @TICALCS_LIBS@ @TICONV_LIBS@ \
- @GLIB_LIBS@ @GTK_LIBS@ \
- @LIB_KDECORE@ @LIB_KDEUI@ @LIB_KIO@ @LIB_QT@ @KDE_LDFLAGS@ \
- @QT_LDFLAGS@ @X_LDFLAGS@ @LIBZ@
+ @GLIB_LIBS@ @GTK_LIBS@ @LIBZ@
+# @LIB_KDECORE@ @LIB_KDEUI@ @LIB_KIO@ @LIB_QT@ @KDE_LDFLAGS@ \
+# @QT_LDFLAGS@ @X_LDFLAGS@
tilp_SOURCES = *.h \
tilp_calcs.c tilp_cmdline.c tilp_config.c tilp_error.c \
tilp_files.c tilp_gif.c tilp_main.c \
--- configure.ac.orig
+++ configure.ac
@@ -118,22 +118,23 @@
CFLAGS="$CFLAGS $ARCH"
# KDE dialogs support
-AC_ARG_WITH(kde, AC_HELP_STRING([--with-kde], [Compile with KDE support]), [kde=$withval], [kde=no])
-if test "x$kde" = "xdefault"; then
- case $host_os in
- *mingw*)
- kde=no
- ;;
- *)
- kde=yes
- ;;
- esac
-fi
-if test "x$kde" = "xyes"; then
- AC_PROG_CXX
- AC_PATH_KDE
- AC_DEFINE(WITH_KDE, 1, [Use KDE support])
-fi
+#AC_ARG_WITH(kde, AC_HELP_STRING([--with-kde], [Compile with KDE support]), [kde=$withval], [kde=no])
+#if test "x$kde" = "xdefault"; then
+# case $host_os in
+# *mingw*)
+# kde=no
+# ;;
+# *)
+# kde=yes
+# ;;
+# esac
+#fi
+#if test "x$kde" = "xyes"; then
+# AC_PROG_CXX
+# AC_PATH_KDE
+# AC_DEFINE(WITH_KDE, 1, [Use KDE support])
+#fi
+kde=no
AM_CONDITIONAL(USE_KDE, test "x$kde" = "xyes")
AC_SUBST(kde)

25
srcpkgs/tilp2/template Normal file
View file

@ -0,0 +1,25 @@
# Template file for 'tilp2'
pkgname=tilp2
version=1.18
revision=1
build_style=gnu-configure
hostmakedepends="automake bison groff intltool libtool pkg-config texinfo"
makedepends="gtk+-devel libusb-devel zlib-devel glib-devel libarchive-devel
gettext-devel libticonv-devel libtifiles2-devel libticables2-devel
libticalcs2-devel"
depends="xdg-utils gfm"
short_desc="Connect to TI calculators"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://www.ticalc.org"
distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${version}/${pkgname}-${version}.tar.bz2"
checksum=7b3ab363eeb52504d6ef5811c5d264f8016060bb7bd427be5a064c2ed7384e47
if [ -n "$CROSS_BUILD" ]; then
hostmakedepends+=" gettext-devel glib-devel"
fi
pre_configure() {
mkdir -p m4
autoreconf -i -v -f
}