ports/124520: [patch] emulators/linux-xjoypad remove USE_LINUX/USE_X_PREFIX
Alex Kozlov
spam at rm-rf.kiev.ua
Thu Jun 12 16:50:04 UTC 2008
>Number: 124520
>Category: ports
>Synopsis: [patch] emulators/linux-xjoypad remove USE_LINUX/USE_X_PREFIX
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 12 16:50:03 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Alex Kozlov
>Release: FreeBSD 6.3
>Organization:
private
>Environment:
>Description:
- remove USE_LINUX
- remove USE_X_PREFIX
- remove BUILD_DEPENDS
- fix USE_XORG
- fix LDFLAGS
- fix CATEGORIES
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: emulators/linux-xjoypad/Makefile
@@ -7,8 +7,8 @@
PORTNAME= xjoypad
PORTVERSION= 1
-PORTREVISION= 1
-CATEGORIES= emulators linux
+PORTREVISION= 2
+CATEGORIES= emulators
MASTER_SITES= http://members.chello.at/erich.kitzmueller/ammoq/down/
PKGNAMEPREFIX= linux-
DISTNAME= xjoypad
@@ -16,23 +16,18 @@
MAINTAINER= beyert at cs.ucr.edu
COMMENT= Joy-Device to X mapping (lets you play Linux games with a joypad)
-BUILD_DEPENDS= ${X11BASE}/lib/libX11.a:${PORTSDIR}/x11/libX11
RUN_DEPENDS= /boot/modules/linux_js.ko:${PORTSDIR}/devel/linux-js
-USE_XORG= x11
+USE_XORG= x11 xau xdmcp
WRKSRC= ${WRKDIR}/xjoypad/
-USE_LINUX= yes
-USE_X_PREFIX= yes
USE_ZIP= yes
FILES= xjoypad.c sendevent.c
-CFLAGS+= -I ${PREFIX}/include
-LIB_X11= ${PREFIX}/lib/libX11.a
-LIB_XAU= ${PREFIX}/lib/libXau.a
-LIB_XDMCP= ${PREFIX}/lib/libXdmcp.a
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lcompat -lX11 -lXau -lXdmcp
do-build:
- (cd ${WRKSRC} && ${CC} ${CFLAGS} -o xjoypad ${FILES} -lcompat -lm ${LIB_X11} ${LIB_XAU} ${LIB_XDMCP})
+ (cd ${WRKSRC} && ${CC} ${CFLAGS} -o xjoypad ${FILES} ${LDFLAGS} )
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xjoypad ${PREFIX}/bin
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list