summaryrefslogtreecommitdiff
path: root/multimedia/ffmpeg-devel/files/patch-libavformat::Makefile
blob: 3d3e577a1fc89fdef770414629c6b6f123ee329f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- libavformat/Makefile.orig	Mon Nov 28 22:06:13 2005
+++ libavformat/Makefile	Mon Nov 28 22:07:39 2005
@@ -113,8 +113,7 @@
 	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) "$(prefix)"
 else
 	install -d $(libdir)
-	install $(INSTALLSTRIP) -m 755 $(SLIBNAME) $(libdir)/$(SLIBPREF)avformat-$(VERSION)$(SLIBSUF)
-	ln -sf $(SLIBPREF)avformat-$(VERSION)$(SLIBSUF) $(libdir)/$(SLIBNAME)
+	${BSD_INSTALL_DATA} $(SLIBNAME) $(libdir)/libavformat.so
 	$(LDCONFIG) || true
 endif
 else
@@ -126,12 +125,12 @@
 
 install-headers:
 	mkdir -p "$(prefix)/include/ffmpeg"
-	install -m 644 $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
+	${BSD_INSTALL_DATA} $(SRC_PATH)/libavformat/avformat.h $(SRC_PATH)/libavformat/avio.h \
                 $(SRC_PATH)/libavformat/rtp.h $(SRC_PATH)/libavformat/rtsp.h \
                 $(SRC_PATH)/libavformat/rtspcodes.h \
                 "$(prefix)/include/ffmpeg"
-	install -d "$(libdir)/pkgconfig"
-	install -m 644 ../libavformat.pc "$(libdir)/pkgconfig"
+	install -d $(prefix)/libdata/pkgconfig
+	${BSD_INSTALL_DATA} ../libavformat.pc $(prefix)/libdata/pkgconfig
 
 %.o: %.c
 	$(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<