Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2019 06:03:53 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r490525 - head/graphics/grafx2
Message-ID:  <201901170603.x0H63rdN087800@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Thu Jan 17 06:03:53 2019
New Revision: 490525
URL: https://svnweb.freebsd.org/changeset/ports/490525

Log:
  - Switch from sdl1 to sdl2
  - Use default lua version
  
  Notified by:	nanard@free.fr (via mail)

Modified:
  head/graphics/grafx2/Makefile

Modified: head/graphics/grafx2/Makefile
==============================================================================
--- head/graphics/grafx2/Makefile	Thu Jan 17 05:59:38 2019	(r490524)
+++ head/graphics/grafx2/Makefile	Thu Jan 17 06:03:53 2019	(r490525)
@@ -4,6 +4,7 @@
 PORTNAME=	grafx2
 PORTVERSION=	2.6
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	SF/recoil/recoil/${RECOIL_VERSION}/:recoil
 DISTFILES=	recoil-${RECOIL_VERSION}${EXTRACT_SUFX}:recoil
@@ -18,7 +19,7 @@ LIB_DEPENDS=	libX11.so:x11/libX11 \
 		libtiff.so:graphics/tiff
 
 USES=		desktop-file-utils gmake iconv:wchar_t pkgconfig
-USE_SDL=	sdl image
+USE_SDL=	sdl2 image2
 USE_GITLAB=	yes
 
 GL_ACCOUNT=	GrafX2
@@ -27,21 +28,23 @@ GL_COMMIT=	5d8c61e41011a8106359343243e1050af4e7fd1f
 
 INSTALLS_ICONS=	yes
 
+GRAFX2_API=	sdl2
 RECOIL_VERSION=	4.3.1
 
 WRKSRC_SUBDIR=	src
 CFLAGS+=	-DHAVE_SYS_PARAM_H -DHAVE_SYS_UCRED_H -DHAVE_SYS_MOUNT_H
+MAKE_ENV+=	API=${GRAFX2_API}
 
 OPTIONS_DEFINE=	LUA TTF
 OPTIONS_DEFAULT=TTF
 OPTIONS_SUB=	yes
 TTF_DESC=	True Type font support
 
-LUA_USES=		lua:51
+LUA_USES=		lua
 LUA_MAKE_ARGS_OFF=	NOLUA=1
 
 TTF_LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig
-TTF_USE=		SDL=ttf
+TTF_USE=		SDL=ttf2
 TTF_MAKE_ARGS_OFF=	NOTTF=1
 
 post-extract:
@@ -56,7 +59,7 @@ post-patch:
 		${WRKSRC}/setup.c
 
 post-install:
-	@${MV} ${STAGEDIR}${PREFIX}/bin/grafx2-sdl \
+	@${MV} ${STAGEDIR}${PREFIX}/bin/grafx2-${GRAFX2_API} \
 		${STAGEDIR}${PREFIX}/bin/grafx2
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/grafx2
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901170603.x0H63rdN087800>