- Prefer to build and install shared library rather than static one
- Convert explicit LIB_DEPENDS to their USE_XORG equivalents - Utilize USES+=localbase instead of manually amending CPPFLAGS/LDFLAGS - Drop USE_GCC=yes: the port builds fine with both Clang and GCC 4.2.1 (e.g. on PowerPC)
This commit is contained in:
parent
310210b632
commit
440b39bba3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434991
2 changed files with 7 additions and 10 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= glfw
|
||||
PORTVERSION= 3.2.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= SF
|
||||
|
||||
|
@ -11,17 +12,11 @@ COMMENT= Portable framework for OpenGL development
|
|||
|
||||
LICENSE= ZLIB
|
||||
|
||||
LIB_DEPENDS= libXinerama.so:x11/libXinerama \
|
||||
libXcursor.so:x11/libXcursor
|
||||
|
||||
USES= cmake zip
|
||||
USE_XORG= xi xrandr
|
||||
USES= cmake localbase zip
|
||||
USE_XORG= x11 xcursor xinerama xrandr xxf86vm
|
||||
USE_GL= glu
|
||||
USE_GCC= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
CMAKE_ARGS= -DBUILD_SHARED_LIBS:BOOL=ON
|
||||
|
||||
PORTDOCS= *
|
||||
|
||||
|
|
|
@ -4,5 +4,7 @@ lib/cmake/glfw3/glfw3Config.cmake
|
|||
lib/cmake/glfw3/glfw3ConfigVersion.cmake
|
||||
lib/cmake/glfw3/glfw3Targets-%%CMAKE_BUILD_TYPE%%.cmake
|
||||
lib/cmake/glfw3/glfw3Targets.cmake
|
||||
lib/libglfw3.a
|
||||
lib/libglfw.so
|
||||
lib/libglfw.so.3
|
||||
lib/libglfw.so.3.2
|
||||
libdata/pkgconfig/glfw3.pc
|
||||
|
|
Loading…
Reference in a new issue