mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-06 01:57:40 +00:00
multimedia/nymphcast: tidy & fix build
- nymphrpc didn't build for me in poudriere, needs a poke to ensure that the directory for storing the object files is created first (this is erratically a problem with -j) - nymphcast can USE=sdl, suggestion from makc@
This commit is contained in:
parent
880df4f465
commit
128f6c8e6d
@ -1,6 +1,6 @@
|
||||
PORTNAME= NymphCast
|
||||
DISTVERSION= v0.1-rc0
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= multimedia
|
||||
|
||||
# -p3 because WRKSRC_SUBDIR is set; the patches are from the toplevel,
|
||||
@ -23,16 +23,15 @@ LIB_DEPENDS= libnymphrpc.so:multimedia/nymphrpc \
|
||||
libnymphcast.so:multimedia/nymphcastlib \
|
||||
libasound.so:audio/alsa-lib \
|
||||
libPocoFoundation.so:devel/poco \
|
||||
libSDL2.so:devel/sdl20 \
|
||||
libcurl.so:ftp/curl \
|
||||
libfreeimage.so:graphics/freeimage \
|
||||
libSDL2_image-2.0.so.0:graphics/sdl2_image \
|
||||
libavutil.so:multimedia/ffmpeg \
|
||||
libvlccore.so:multimedia/vlc \
|
||||
libfreetype.so:print/freetype2
|
||||
|
||||
USES= compiler:c++17-lang gl gmake pkgconfig
|
||||
USES= compiler:c++17-lang gl gmake pkgconfig sdl
|
||||
USE_GL= gl
|
||||
USE_SDL= sdl2 image2
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= MayaPosch
|
||||
|
@ -1,5 +1,6 @@
|
||||
PORTNAME= NymphRPC
|
||||
DISTVERSION= v0.1-alpha1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= multimedia devel
|
||||
|
||||
MAINTAINER= adridg@FreeBSD.org
|
||||
|
@ -41,16 +41,20 @@
|
||||
|
||||
ifdef ANDROID
|
||||
CFLAGS += -fPIC
|
||||
@@ -115,7 +116,7 @@ SHARED_OBJECTS := $(addprefix obj/shared/$(ARCH),$(not
|
||||
@@ -113,9 +114,10 @@ SOURCES := $(wildcard src/*.cpp)
|
||||
OBJECTS := $(addprefix obj/static/$(ARCH),$(notdir) $(SOURCES:.cpp=.o))
|
||||
SHARED_OBJECTS := $(addprefix obj/shared/$(ARCH),$(notdir) $(SOURCES:.cpp=.o))
|
||||
|
||||
all: lib
|
||||
-all: lib
|
||||
+all: makedir
|
||||
+ $(MAKE) lib
|
||||
|
||||
-lib: makedir lib/$(ARCH)$(OUTPUT).a lib/$(ARCH)$(LIBNAME)
|
||||
+lib: makedir lib/$(OUTPUT).a lib/$(LIBNAME)
|
||||
|
||||
obj/static/$(ARCH)%.o: %.cpp
|
||||
$(GCC) -c -o $@ $< $(CFLAGS)
|
||||
@@ -123,11 +124,11 @@ obj/static/$(ARCH)%.o: %.cpp
|
||||
@@ -123,11 +125,11 @@ obj/static/$(ARCH)%.o: %.cpp
|
||||
obj/shared/$(ARCH)%.o: %.cpp
|
||||
$(GCC) -c -o $@ $< $(SHARED_FLAGS) $(CFLAGS) $(LIBS)
|
||||
|
||||
@ -64,7 +68,7 @@
|
||||
$(GCC) -o $@ $(CFLAGS) $(SHARED_FLAGS) $(SHARED_OBJECTS) $(LIBS)
|
||||
|
||||
makedir:
|
||||
@@ -165,9 +166,9 @@ endif
|
||||
@@ -165,9 +167,9 @@ endif
|
||||
.PHONY: install
|
||||
install:
|
||||
install -d $(DESTDIR)$(PREFIX)/lib/
|
||||
|
Loading…
Reference in New Issue
Block a user