Giter Site home page Giter Site logo

Comments (3)

klarkc avatar klarkc commented on July 21, 2024

Update install and uninstall scripts in Makefile (for easy use of checkinstall):


diff --git a/Makefile b/Makefile
index 6ec6851..3b06734 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ SDK_PATH=../../include
 
 SYS=`uname -s`
 
-CXXFLAGS=-Wno-multichar -I $(SDK_PATH) -fno-rtti -D__STDC_CONSTANT_MACROS -g
+CXXFLAGS=-Wno-multichar -I $(SDK_PATH) `pkg-config --cflags libavformat libswscale` -fno-rtti -D__STDC_CONSTANT_MACROS -g
 LDFLAGS=-lm -ldl -lpthread `pkg-config --libs libavformat libswscale`
 
 ifeq ($(SYS),Darwin)
@@ -51,3 +51,9 @@ bmdgenlock: genlock.cpp $(SDK_PATH)/DeckLinkAPIDispatch.cpp
 
 clean:
        -rm -f bmdcapture bmdplay
+
+install:
+       cp bmdcapture bmdplay bmdgenlock /usr/bin/
+
+uninstall:
+       rm /usr/bin/bmdcapture /usr/bin/bmdplay /usr/bin/bmdgenlock

from bmdtools.

lu-zero avatar lu-zero commented on July 21, 2024

Could you please send a pull request?

Thanks for improving the makefile =)

On Wed, May 15, 2013 at 10:48 PM, klarkc [email protected] wrote:

Update install and uninstall scripts in Makefile (for easy use of
checkinstall):

diff --git a/Makefile b/Makefile
index 6ec6851 https://github.com/lu-zero/bmdtools/commit/6ec6851..3b06734
100644

--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ SDK_PATH=../../include

SYS=uname -s

-CXXFLAGS=-Wno-multichar -I $(SDK_PATH) -fno-rtti -D__STDC_CONSTANT_MACROS
-g
+CXXFLAGS=-Wno-multichar -I $(SDK_PATH) pkg-config --cflags libavformat
libswscale -fno-rtti -D__STDC_CONSTANT_MACROS -g
LDFLAGS=-lm -ldl -lpthread pkg-config --libs libavformat libswscale

ifeq ($(SYS),Darwin)
@@ -51,3 +51,9 @@ bmdgenlock: genlock.cpp
$(SDK_PATH)/DeckLinkAPIDispatch.cpp

clean:
-rm -f bmdcapture bmdplay
+
+install:

  • cp bmdcapture bmdplay bmdgenlock /usr/bin/ + +uninstall:
  • rm /usr/bin/bmdcapture /usr/bin/bmdplay /usr/bin/bmdgenlock


Reply to this email directly or view it on GitHubhttps://github.com//issues/14#issuecomment-17965230
.

from bmdtools.

lu-zero avatar lu-zero commented on July 21, 2024

Updated the build system, I'm not exactly keep in adding uninstall targets for a number of reasons.

from bmdtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.