http://people.freebsd.org/~amdmi3/utox.patchКод:
Index: Makefile
===================================================================
--- Makefile (revision 30633)
+++ Makefile (working copy)
@@ -1,4 +1,3 @@
-# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD: head/net-im/tox/Makefile 361088 2014-07-07 13:54:23Z tijl $
PORTNAME= uTox
@@ -6,11 +5,13 @@
CATEGORIES= net-im net-p2p
MAINTAINER= fidaj@ukr.net
-COMMENT= Lightweight Tox client.
+COMMENT= Lightweight Tox client
LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox
+BUILD_DEPENDS= ${LOCALBASE}/lib/libtoxcore.a:${PORTSDIR}/net-im/tox \
+ ${LOCALBASE}/include/linux/videodev2.h:${PORTSDIR}/multimedia/v4l_compat
LIB_DEPENDS= libdbus-1.so:${PORTSDIR}/devel/dbus \
libXft.so:${PORTSDIR}/x11-fonts/libXft
@@ -20,8 +21,10 @@
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= f7c5382
-USES= gmake
+USES= gmake pkgconfig
+PLIST_FILES= bin/utox
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/utox ${STAGEDIR}${PREFIX}/bin
Index: files/patch-Makefile
===================================================================
--- files/patch-Makefile (revision 30633)
+++ files/patch-Makefile (working copy)
@@ -1,8 +1,12 @@
---- Makefile.orig 2014-08-16 17:46:44.000000000 +0300
-+++ Makefile 2014-08-16 17:47:22.000000000 +0300
-@@ -3,7 +3,7 @@
+--- Makefile.orig 2014-08-16 01:41:47.000000000 +0400
++++ Makefile 2014-08-18 02:05:27.171275515 +0400
+@@ -1,9 +1,9 @@
+-CFLAGS = $(shell pkg-config --cflags freetype2 x11 openal)
++CFLAGS += $(shell pkg-config --cflags freetype2 x11 openal)
+ CFLAGS += $(shell pkg-config --cflags dbus-1)
CFLAGS += -g -pthread -std=gnu99
- LDFLAGS = $(shell pkg-config --libs freetype2 x11 openal)
+-LDFLAGS = $(shell pkg-config --libs freetype2 x11 openal)
++LDFLAGS += $(shell pkg-config --libs freetype2 x11 openal)
LDFLAGS += $(shell pkg-config --libs dbus-1)
-LDFLAGS += -lX11 -lXft -lXrender -ltoxcore -ltoxav -ltoxdns -lopenal -pthread -lresolv -ldl -lm -lfontconfig -lv4lconvert -lvpx -lXext
+LDFLAGS += -lX11 -lXft -lXrender -ltoxcore -ltoxav -ltoxdns -lopenal -pthread -lm -lfontconfig -lv4lconvert -lvpx -lXext
Index: pkg-plist
===================================================================
--- pkg-plist (revision 30633)
+++ pkg-plist (working copy)
@@ -1,4 +0,0 @@
-@owner root
-@group wheel
-bin/utox
-@cwd /usr/local